CVE-2026-48944

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.
References
Link Resource
https://www.getk2.org/ Product
Configurations

Configuration 1 (hide)

cpe:2.3:a:joomlaworks:k2:*:*:*:*:*:joomla\!:*:*

History

25 Oct 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) El gestor de guardado de artículos del frontend de K2 acepta un campo POST “attachment[N][existing]” que se concatena con “JPATH_SITE/” y se pasa a “JFile::copy()”. “JPath::clean” NO elimina “..”, y no hay una lista de permitidos de rutas de origen. Un autor puede, por lo tanto, copiar “configuration.php” (o cualquier otro archivo legible por el usuario web - incluyendo “.. / .. / .. / etc/p4ssd”) en “/media/k2/attachments/”, y luego recuperar el contenido a través del endpoint de descarga de adjuntos de K2.

Information

Published : 2026-06-25 16:16

Updated : 2026-10-25 22:10


NVD link : CVE-2026-48944

Mitre link : CVE-2026-48944

CVE.ORG link : CVE-2026-48944


JSON object : View

Products Affected

joomlaworks

  • k2
CWE
CWE-22

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