Vulnerability

CVE-2026-49972

highCVSS 4.0 7.7Published 13 Jul 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /plank/laravel-mediable/commit/49e3583bed13423611b3391f89e6…
  • github.com /plank/laravel-mediable/releases/tag/7.0.0
  • www.vulncheck.com /advisories/laravel-mediable-file-upload-rce-via-extension-…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning