CVE-2024-52301: Laravel allows environment manipulation via query string

Published Nov 12, 2024
·
Updated

Description

When the registerargcargv 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.

Other sources

Laravel is a web application framework. When the registerargcargv 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.

MITRE

Affected Software

13 affected componentsFixes available
composer/laravel/framework>=11.0.0<11.31.0
11.31.0
composer/laravel/framework>=10.0.0<10.48.23
10.48.23
composer/laravel/framework>=9.0.0<9.52.17
9.52.17
composer/laravel/framework>=8.0.0<8.83.28
8.83.28
composer/laravel/framework>=7.0.0<7.30.7
7.30.7
composer/laravel/framework<6.20.45
6.20.45
Laravel Framework<6.20.45
Laravel Framework>=7.0.0<7.30.7
Laravel Framework>=8.0.0<8.83.28
Laravel Framework>=9.0.0<9.52.17
Laravel Framework>=10.0.0<10.48.23
Laravel Framework>=11.0.0<11.31.0
Debian Debian Linux=11.0

Event History

Nov 12, 2024
CVE Published
via MITRE·07:32 PM
Data Sourced
via MITRE·07:32 PM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
Affected Software
Advisory Published
via GitHub·10:08 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-52301?

CVE-2024-52301 is considered a moderate severity vulnerability due to its potential impact on the environment used by the framework.

2

How do I fix CVE-2024-52301?

To resolve CVE-2024-52301, update your Laravel framework to version 11.31.0, 10.48.23, 9.52.17, 8.83.28, 7.30.7, or 6.20.45 or later.

3

What types of systems are affected by CVE-2024-52301?

CVE-2024-52301 affects applications built on specific versions of the Laravel framework when the `register_argc_argv php` directive is set to `on`.

4

What does CVE-2024-52301 exploit?

CVE-2024-52301 exploits the ability to change the environment variables used by the Laravel framework through specially crafted query strings.

5

Is CVE-2024-52301 present in older versions of Laravel?

Yes, older versions of Laravel prior to the mentioned patches are vulnerable to CVE-2024-52301.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203