—0.0
GHSA-gv7v-rgg6-548h
Laravel environment manipulation via query string
Quick fix
GHSA-gv7v-rgg6-548h — laravel/framework: upgrade to the fixed version with the command below.
composer require laravel/framework:^6.20.45Details
## 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/laravel/framework
Introduced in:
0Fixed in: 6.20.45Fix
composer require laravel/framework:^6.20.45Packagist/laravel/framework
Introduced in:
7.0.0Fixed in: 7.30.7Fix
composer require laravel/framework:^7.30.7Packagist/laravel/framework
Introduced in:
8.0.0Fixed in: 8.83.28Fix
composer require laravel/framework:^8.83.28Packagist/laravel/framework
Introduced in:
9.0.0Fixed in: 9.52.17Fix
composer require laravel/framework:^9.52.17Packagist/laravel/framework
Introduced in:
10.0.0Fixed in: 10.48.23Fix
composer require laravel/framework:^10.48.23Packagist/laravel/framework
Introduced in:
11.0.0Fixed in: 11.31.0Fix
composer require laravel/framework:^11.31.0References
- https://github.com/laravel/framework/security/advisories/GHSA-gv7v-rgg6-548h[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2024-52301[ADVISORY]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2024-52301.yaml[WEB]
- https://github.com/advisories/GHSA-gv7v-rgg6-548h[ADVISORY]
- https://github.com/laravel/framework[PACKAGE]
- https://lists.debian.org/debian-lts-announce/2024/12/msg00019.html[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/laravel/framework"]}'