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.
Published: 2026-06-25
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The K2 extension’s frontend article‑save handler accepts a POST field named attachment[N][existing] and concatenates it with the site root path before passing it to JFile::copy() with no pathname sanitization. Because JPath::clean does not strip “..” sequences and there is no whitelist of allowed source locations, an authenticated author can point the field at any file readable by the web server user—such as configuration.php or /etc/passwd—and have it copied into the public /media/k2/attachments/ directory. The attacker can then retrieve the file content through the K2 attachment‑download endpoint, resulting in disclosure of arbitrary server‑side files.

Affected Systems

All installations of getk2.com’s K2 extension for Joomla that are older than version 2.26 are affected. No specific sub‑versions are listed, but the vulnerability applies to all releases preceding 2.26.

Risk and Exploitability

The flaw provides local file read and store capabilities to users with author‑level permissions. While the EPSS score is not available and the issue is not listed in CISA KEV, lack of path validation satisfies CWE‑22 “Path Traversal”. The likely attack vector is from a browser or via API calls, based on the description, and results in medium‑severity data disclosure as indicated by the CVSS score of 6.5 if sensitive configuration files or system files are accessed.

Generated by OpenCVE AI on June 25, 2026 at 20:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the K2 extension to version 2.26 or later, which resolves the file‑copy vulnerability.
  • Revoke write permissions of the web server process on critical files such as configuration.php to prevent them from being copied into the public attachments directory.
  • Configure the application or web server to reject any attachment[N][existing] values that contain directory traversal sequences or reference paths outside the site root, effectively enforcing an allow‑list of source locations.

Generated by OpenCVE AI on June 25, 2026 at 20:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
Link Providers
https://www.getk2.org/ cve-icon
History

Fri, 26 Jun 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Getk2
Getk2 k2 Extension For Joomla
Vendors & Products Getk2
Getk2 k2 Extension For Joomla

Thu, 25 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 25 Jun 2026 15:45:00 +0000

Type Values Removed Values Added
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.
Title Joomla Extension - getk2.com - Exposure of sensitive files via attachment copy in K2 extension for Joomla < 2.26
Weaknesses CWE-22
References

Subscriptions

Getk2 K2 Extension For Joomla
cve-icon MITRE

Status: PUBLISHED

Assigner: Joomla

Published:

Updated: 2026-06-25T18:43:28.883Z

Reserved: 2026-05-26T16:47:13.550Z

Link: CVE-2026-48944

cve-icon Vulnrichment

Updated: 2026-06-25T18:43:24.992Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-26T09:37:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')