CVE-2026-48944: CWE-22 Improper Limitation of a Pathname to a Restricted Directory in getk2.com 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 accepts an `attachment[N][existing]` POST parameter that is concatenated with the Joomla base path `JPATH_SITE/` and passed to `JFile::copy()`. The path cleaning function `JPath::clean` does not remove `..` sequences, and there is no allow-list restricting source file paths. Consequently, an authenticated Author can exploit this to copy arbitrary readable files from the server filesystem into `/media/k2/attachments/`. These files can then be downloaded through the K2 attachment-download endpoint, leading to unauthorized file disclosure. The affected versions are K2 extension for Joomla from 1.0 up to and including 2.26. No official patch or remediation guidance is currently available.
Potential Impact
An authenticated user with Author privileges can read arbitrary files on the server that are accessible to the web user by copying them into a publicly accessible directory and then downloading them. This can lead to disclosure of sensitive information such as configuration files or system files, potentially compromising the confidentiality of the Joomla installation and the underlying server.
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 consider disabling or restricting the K2 attachment functionality to prevent exploitation. Monitor for updates from the vendor regarding an official fix.
CVE-2026-48944: CWE-22 Improper Limitation of a Pathname to a Restricted Directory in getk2.com 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 accepts an `attachment[N][existing]` POST parameter that is concatenated with the Joomla base path `JPATH_SITE/` and passed to `JFile::copy()`. The path cleaning function `JPath::clean` does not remove `..` sequences, and there is no allow-list restricting source file paths. Consequently, an authenticated Author can exploit this to copy arbitrary readable files from the server filesystem into `/media/k2/attachments/`. These files can then be downloaded through the K2 attachment-download endpoint, leading to unauthorized file disclosure. The affected versions are K2 extension for Joomla from 1.0 up to and including 2.26. No official patch or remediation guidance is currently available.
Potential Impact
An authenticated user with Author privileges can read arbitrary files on the server that are accessible to the web user by copying them into a publicly accessible directory and then downloading them. This can lead to disclosure of sensitive information such as configuration files or system files, potentially compromising the confidentiality of the Joomla installation and the underlying server.
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 consider disabling or restricting the K2 attachment functionality to prevent exploitation. Monitor for updates from the vendor regarding an official fix.
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: 06/25/2026, 16:02:00 UTC
Last updated: 06/26/2026, 02:21:06 UTC
Views: 7
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.