CVE-2024-52301: Laravel 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 environment manipulation via query string

— Packagist

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

23 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
composer/laravel/framework<6.20.45
6.20.45
composer/laravel/framework>=7.0.0, <7.30.7
7.30.7
composer/laravel/framework>=8.0.0, <8.83.28
8.83.28
composer/laravel/framework>=9.0.0, <9.52.17
9.52.17
composer/laravel/framework>=10.0.0, <10.48.23
10.48.23
composer/laravel/framework>=11.0.0, <11.31.0
11.31.0
debian/php-laravel-framework*
debian/php-laravel-framework<10.48.25+dfsg-1
10.48.25+dfsg-1
debian/php-laravel-framework<10.48.25+dfsg-1
10.48.25+dfsg-1
debian/php-laravel-framework<=8.83.26+dfsg-2
10.48.29+dfsg-113.31.0+dfsg-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/laravel/framework to a version that resolves this vulnerability.

    Fixed in 11.31.0
  2. Upgrade

    Upgrade composer/laravel/framework to a version that resolves this vulnerability.

    Fixed in 10.48.23
  3. Upgrade

    Upgrade composer/laravel/framework to a version that resolves this vulnerability.

    Fixed in 9.52.17
  4. Upgrade

    Upgrade composer/laravel/framework to a version that resolves this vulnerability.

    Fixed in 8.83.28
  5. Upgrade

    Upgrade composer/laravel/framework to a version that resolves this vulnerability.

    Fixed in 7.30.7
  6. Upgrade

    Upgrade composer/laravel/framework to a version that resolves this vulnerability.

    Fixed in 6.20.45
  7. Upgrade

    Upgrade debian/php-laravel-framework to a version that resolves this vulnerability.

    Fixed in 10.48.25+dfsg-1
  8. Upgrade

    Upgrade debian/php-laravel-framework to a version that resolves this vulnerability.

    Fixed in 10.48.29+dfsg-1Fixed in 13.31.0+dfsg-2
  9. Upgrade

    Upgrade Laravel to a version that resolves this vulnerability.

    Fixed in 6.20.45
  10. Upgrade

    Upgrade Laravel to a version that resolves this vulnerability.

    Fixed in 7.30.7
  11. Upgrade

    Upgrade Laravel to a version that resolves this vulnerability.

    Fixed in 8.83.28
  12. Upgrade

    Upgrade Laravel to a version that resolves this vulnerability.

    Fixed in 9.52.17
  13. Upgrade

    Upgrade Laravel to a version that resolves this vulnerability.

    Fixed in 10.48.23
  14. Upgrade

    Upgrade Laravel to a version that resolves this vulnerability.

    Fixed in 11.31.0

Event History

Nov 12, 2024
Advisory Published
via Packagist·03:29 PM
Data Sourced
via Packagist·03:29 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·07:32 PM
Data Sourced
via MITRE·07:32 PM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·10:08 PM
Data Sourced
via GitHub·10:08 PM
DescriptionWeaknessAffected Software
Nov 14, 2024
Exploit Published
via GitHub·06:41 PM

Peer vulnerabilities

Found alongside the following vulnerabilities.

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