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

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.45
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.7
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.28
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.17
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.23
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.0

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.