CVE-2026-49972

Laravel-Mediable before 7.0.0 contains a file upload vulnerability that allows unauthenticated attackers to achieve remote code execution by uploading a file with an embedded PHP extension disguised within a double extension such as shell.php.jpg. The PATHINFO_FILENAME extraction preserves the inner .php extension in the base name, and on misconfigured Apache or nginx servers that execute any filename containing .php as PHP, the stored file is interpreted as executable code while all MIME type, extension, and aggregate type validation checks pass due to the outer .jpg extension.
Configurations

No configuration.

History

24 Oct 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) Laravel-Mediable anterior a la versión 7.0.0 contiene una vulnerabilidad de carga de archivos que permite a atacantes no autenticados lograr la ejecución remota de código al cargar un archivo con una extensión PHP incrustada disfrazada dentro de una doble extensión como shell.php.jpg. La extracción de PATHINFO_FILENAME conserva la extensión .php interna en el nombre base, y en servidores Apache o nginx mal configurados que ejecutan cualquier nombre de archivo que contenga .php como PHP, el archivo almacenado se interpreta como código ejecutable mientras que todas las comprobaciones de validación de tipo MIME, extensión y tipo agregado pasan debido a la extensión .jpg externa.

13 Jul 2026, 19:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-13 19:17

Updated : 2026-10-24 22:10


NVD link : CVE-2026-49972

Mitre link : CVE-2026-49972

CVE.ORG link : CVE-2026-49972


JSON object : View

Products Affected

No product.

CWE
CWE-434

Unrestricted Upload of File with Dangerous Type