CVE-2026-48944
Analyzed Analyzed - Analysis Complete

Path Traversal in K2 Joomla Extension

Vulnerability report for CVE-2026-48944, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-25

Last updated on: 2026-06-28

Assigner: Joomla! Project

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-25
Last Modified
2026-06-28
Generated
2026-07-15
AI Q&A
2026-06-25
EPSS Evaluated
2026-07-14
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
joomlaworks k2 to 2.26 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the K2 frontend article-save handler, which accepts a POST field named `attachment[N][existing]`. This field is concatenated with the server path `JPATH_SITE/` and passed to the file copy function `JFile::copy()`. The path cleaning function `JPath::clean` does not remove directory traversal sequences like `..`, and there is no allow-list restricting source file paths.

As a result, an Author-level user can exploit this by copying sensitive files such as `configuration.php` or any other file readable by the web user (including system files like `../../../etc/passwd`) into the `/media/k2/attachments/` directory. These files can then be accessed and downloaded via the K2 attachment-download endpoint.

Impact Analysis

This vulnerability allows an attacker with Author-level access to read and download sensitive files from the server that should normally be protected.

  • Disclosure of sensitive configuration files such as `configuration.php` which may contain database credentials and other secrets.
  • Exposure of system files like `/etc/passwd` that could aid in further attacks.
  • Potential compromise of the confidentiality and integrity of the web application and server environment.
Detection Guidance

This vulnerability involves the K2 frontend article-save handler accepting a crafted POST field that allows an Author to copy arbitrary readable files into the /media/k2/attachments/ directory, which can then be accessed via the attachment-download endpoint.

To detect exploitation attempts on your system or network, you can monitor HTTP POST requests to the K2 article-save handler for suspicious parameters like attachment[N][existing] containing path traversal sequences (e.g., ../).

Suggested commands to detect such activity include:

  • Using web server logs, search for POST requests with 'attachment' parameters containing '..' sequences: grep -i 'attachment.*\.\.\/' /var/log/apache2/access.log
  • Use network monitoring tools like tcpdump or Wireshark to filter HTTP POST traffic to the K2 article-save endpoint and inspect payloads for suspicious path traversal patterns.
  • On the server, check the /media/k2/attachments/ directory for unexpected files such as configuration.php or passwd that should not be present.
Mitigation Strategies

Immediate mitigation steps include restricting the ability of Authors to upload or save attachments until a patch is applied.

Additionally, you should monitor and restrict access to the /media/k2/attachments/ directory to prevent unauthorized file downloads.

Applying any available security updates or patches from the K2 or JoomlaWorks developers as soon as possible is critical.

As a temporary workaround, consider implementing web application firewall (WAF) rules to block POST requests containing suspicious path traversal patterns in the attachment[N][existing] parameter.

Compliance Impact

This vulnerability allows an Author to copy sensitive files readable by the web user, such as configuration files or system files like /etc/passwd, into a publicly accessible location and then retrieve their contents. This exposure of sensitive information could lead to unauthorized access to personal or protected data.

Such unauthorized disclosure of sensitive data can negatively impact compliance with common standards and regulations like GDPR and HIPAA, which require protection of personal and sensitive information from unauthorized access or disclosure.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-48944. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart