HighGHSA-gv7v-rgg6-548hBIT-laravel-2024-52301CVE-2024-52301
Laravel environment manipulation via query string
Published 12 Nov 2024 · Updated 21 Dec 2024
Affected packages
laravel/frameworkComposer
- Affected
- <6.20.45
- Fixed in
- 6.20.45
Update to the fixed version for your release line, for example:
composer require laravel/framework:^6.20.45laravel/frameworkComposer
- Affected
- >=7.0.0 <7.30.7
- Fixed in
- 7.30.7
Update to the fixed version for your release line, for example:
composer require laravel/framework:^7.30.7laravel/frameworkComposer
- Affected
- >=8.0.0 <8.83.28
- Fixed in
- 8.83.28
Update to the fixed version for your release line, for example:
composer require laravel/framework:^8.83.28laravel/frameworkComposer
- Affected
- >=9.0.0 <9.52.17
- Fixed in
- 9.52.17
Update to the fixed version for your release line, for example:
composer require laravel/framework:^9.52.17laravel/frameworkComposer
- Affected
- >=10.0.0 <10.48.23
- Fixed in
- 10.48.23
Update to the fixed version for your release line, for example:
composer require laravel/framework:^10.48.23laravel/frameworkComposer
- Affected
- >=11.0.0 <11.31.0
- Fixed in
- 11.31.0
Update to the fixed version for your release line, for example:
composer require laravel/framework:^11.31.0Details
Description
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.
Resolution
The framework now ignores argv values for environment detection on non-cli SAPIs.
Is GHSA-gv7v-rgg6-548h in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected laravel/framework, and gives you the command that fixes it.
References
- Linkgithub.com/laravel/framework/security/advisories/GHSA-gv7v-rgg6-548h
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-52301
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2024-52301.yaml
- Advisorygithub.com/advisories/GHSA-gv7v-rgg6-548h
- Packagegithub.com/laravel/framework
- Linklists.debian.org/debian-lts-announce/2024/12/msg00019.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.