CVE-2026-48944: CWE-22 Improper Limitation of a Pathname to a Restricted Directory in getk2.org K2 extension for Joomla
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.
AI Analysis
Technical Summary
The K2 frontend article-save handler in versions 1.0 to 2.26 accepts an `attachment[N][existing]` POST parameter that is concatenated with the Joomla root path (`JPATH_SITE/`) and passed to `JFile::copy()`. The path cleaning function `JPath::clean` does not remove directory traversal sequences (`..`), and there is no allow-list restricting source paths. Consequently, an authenticated Author can copy any file readable by the web user, including sensitive files like `configuration.php` or `/etc/passwd`, into the `/media/k2/attachments/` directory. These files can then be accessed via the K2 attachment-download endpoint, leading to unauthorized disclosure of sensitive information.
Potential Impact
An authenticated user with Author privileges can exploit this vulnerability to read arbitrary files on the server that are accessible by the web user. This can lead to disclosure of sensitive configuration files or system files, potentially exposing credentials or system information. The vulnerability does not allow modification or deletion of files, nor does it impact availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict Author-level access to trusted users only and monitor for suspicious activity related to attachment uploads and downloads. Avoid exposing sensitive files via the web server and consider disabling the K2 attachment-download feature if not required.
CVE-2026-48944: CWE-22 Improper Limitation of a Pathname to a Restricted Directory in getk2.org K2 extension for Joomla
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.
CVSS v3.1
Score 6.5medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The K2 frontend article-save handler in versions 1.0 to 2.26 accepts an `attachment[N][existing]` POST parameter that is concatenated with the Joomla root path (`JPATH_SITE/`) and passed to `JFile::copy()`. The path cleaning function `JPath::clean` does not remove directory traversal sequences (`..`), and there is no allow-list restricting source paths. Consequently, an authenticated Author can copy any file readable by the web user, including sensitive files like `configuration.php` or `/etc/passwd`, into the `/media/k2/attachments/` directory. These files can then be accessed via the K2 attachment-download endpoint, leading to unauthorized disclosure of sensitive information.
Potential Impact
An authenticated user with Author privileges can exploit this vulnerability to read arbitrary files on the server that are accessible by the web user. This can lead to disclosure of sensitive configuration files or system files, potentially exposing credentials or system information. The vulnerability does not allow modification or deletion of files, nor does it impact availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict Author-level access to trusted users only and monitor for suspicious activity related to attachment uploads and downloads. Avoid exposing sensitive files via the web server and consider disabling the K2 attachment-download feature if not required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Joomla
- Date Reserved
- 2026-05-26T16:47:13.550Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3d4d4b4853345fc124a303
Added to database: 06/25/2026, 15:46:19 UTC
Last enriched: 07/02/2026, 22:31:17 UTC
Last updated: 08/08/2026, 12:41:11 UTC
Views: 58
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.