Description
The K2 frontend article-save handler accepts an `attachment[N][existing]` POST field that is concatenated with `JPATH_SITE/` and passed to `JFile::copy()`. `JPath::clean` does NOT strip `..`, and there is no allow-list of source paths. An Author can therefore copy `configuration.php` (or any other file readable by the web user — including `../../../etc/passwd`) into `/media/k2/attachments/`, then retrieve the contents via the K2 attachment-download endpoint.
Severity (CVSS)
| Base score | 6.5 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| Provided by | CISA-ADP |
Weaknesses
- CWE-22 — CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Affected products
| Vendor | Product | Versions |
|---|---|---|
| getk2.com | K2 extension for Joomla | 1.0-2.26 |
References
- https://www.getk2.org/ (product)
Generated from the official CVE List on 26 Jun 2026 07:05 UTC.