Skip to content
OpenAdvisories
High · 8.7 Public exploit CVE-2024-52301 BIT-laravel-2024-52301EUVD-2024-3258GHSA-gv7v-rgg6-548h

Laravel allows environment manipulation via query string

Published Nov 12, 2024 · Updated Dec 21, 2024 · Assigned by GitHub_M

Description

Laravel is a web application framework. When the register_argc_argv php directive is set to on , and users call any URL with a special crafted query string, they are able to change the environment used by the framework when handling the request. The vulnerability fixed in 6.20.45, 7.30.7, 8.83.28, 9.52.17, 10.48.23, and 11.31.0. The framework now ignores argv values for environment detection on non-cli SAPIs.

Affected products

VendorProductAffectedFixed
laravel framework < 6.20.45, >= 7.0.0, < 7.30.7, >= 8.0.0, < 8.83.28, >= 9.0.0, < 9.52.17, >= 10.0.0, < 10.48.23, >= 11.0.0, < 11.31.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php-laravel-framework 10.48.25+dfsg-1 —
Debian 13 php-laravel-framework 10.48.25+dfsg-1 —
Debian 12 php-laravel-framework No fix yet —
Debian 11 php-laravel-framework 6.20.14+dfsg-2+deb11u2 DLA-3997-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist laravel/framework < 6.20.45 6.20.45 GHSA-gv7v-rgg6-548h
Packagist laravel/framework >= 7.0.0, < 7.30.7 7.30.7 GHSA-gv7v-rgg6-548h
Packagist laravel/framework >= 8.0.0, < 8.83.28 8.83.28 GHSA-gv7v-rgg6-548h
Packagist laravel/framework >= 9.0.0, < 9.52.17 9.52.17 GHSA-gv7v-rgg6-548h
Packagist laravel/framework >= 10.0.0, < 10.48.23 10.48.23 GHSA-gv7v-rgg6-548h
Packagist laravel/framework >= 11.0.0, < 11.31.0 11.31.0 GHSA-gv7v-rgg6-548h

Advisories 2

References