CVE-2024-52600
JSON

5.3medium

Statamic CMS has Path Traversal in Asset Upload

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.58% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-p7f6-8mcm-fwv3

Description

Statmatic is a Laravel and Git powered content management system (CMS). Prior to version 5.17.0, assets uploaded with appropriately crafted filenames may result in them being placed in a location different than what was configured. The issue affects front-end forms with `assets` fields and other places where assets can be uploaded, although users would need upload permissions anyway. Files can be uploaded so they would be located on the server in a different location, and potentially override existing files. Traversal outside an asset container is not possible. This path traversal vulnerability has been fixed in 5.17.0.

Affected

Product or packageVersionsReported by
statamic cms< 5.17.0CVE List
statamic statamicbefore 5.17.0CVE List
statamic/cms (Packagist)before 5.17.0GitHub Advisory Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Statmatic is a Laravel and Git powered content management system (CMS). Prior to version 5.17.0, assets uploaded with appropriately crafted filenames may result in them being placed in a location different than what was configured. The issue affects front-end forms with `assets` fields and other places where assets can be uploaded, although users would need upload permissions anyway. Files can be uploaded so they would be located on the server in a different location, and potentially override existing files. Traversal outside an asset container is not possible. This path traversal vulnerability has been fixed in 5.17.0.

GitHub Advisory Database

Assets uploaded with appropriately crafted filenames may result in them being placed in a location different than what was configured.

Impact
  • Affects front-end forms with assets fields.
  • Affects other places where assets can be uploaded, although users would need upload permissions anyway.
  • Files can be uploaded so they would be located on the server in a different location, and potentially override existing files.
  • Traversal outside an asset container was not possible.
Patches

This has been fixed in 5.17.0.

NVD (es)

Statmatic es un sistema de gestión de contenido (CMS) basado en Laravel y Git. Antes de la versión 5.17.0, los recursos cargados con nombres de archivo manipulados de forma adecuada podían hacer que se colocaran en una ubicación diferente a la configurada. El problema afecta a los formularios de interfaz con campos de "recursos" y otros lugares donde se pueden cargar recursos, aunque los usuarios necesitarían permisos de carga de todos modos. Los archivos se pueden cargar para que se ubiquen en el servidor en una ubicación diferente y potencialmente anulen los archivos existentes. No es posible atravesar un contenedor de recursos fuera de él. Esta vulnerabilidad de path traversal se ha corregido en la versión 5.17.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-52600 changed 2024-12-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-p7f6-8mcm-fwv3 changed 2024-11-19CC-BY-4.0
NVDCVE-2024-52600 changed 2026-06-17Public domain