Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2024-52301
PHP vulnerability analysis and mitigation

Overview

CVE-2024-52301 is a critical vulnerability identified in Laravel, a widely used PHP web application framework. The vulnerability was discovered and disclosed on November 12, 2024, affecting multiple versions of Laravel including versions below 6.20.45, 7.0.0-7.30.7, 8.0.0-8.83.28, 9.0.0-9.52.17, 10.0.0-10.48.23, and 11.0.0-11.31.0. The issue received a CVSS v4.0 base score of 8.7 (High) (GitHub Advisory).

Technical details

The vulnerability stems from improper input validation related to Laravel's environment configuration handling. Specifically, when the PHP directive register_argc_argv is set to 'on', attackers can manipulate the framework's environment through specially crafted URL query strings. This allows unauthorized modification of the environment used by the framework when processing requests (NVD, Security Online).

Impact

The vulnerability could expose Laravel-based applications to unauthorized access, data tampering, and privilege escalation. Given Laravel's widespread adoption across industries, this vulnerability poses a significant risk to organizations running affected versions in production environments (GBHackers).

Exploitability

The vulnerability is exploitable when the register_argc_argv PHP directive is enabled, allowing attackers to manipulate command-line arguments through crafted URLs. This configuration setting increases the likelihood of successful exploitation by providing a pathway for attackers to bypass input validation or inject malicious data (Security Online).

Mitigation and workarounds

Laravel has released patches across all affected versions with the following fixed versions: 6.20.45, 7.30.7, 8.83.28, 9.52.17, 10.48.23, and 11.31.0. The patch ensures that Laravel ignores argv values for environment detection on non-CLI SAPIs (Server Application Programming Interfaces). Organizations are strongly advised to upgrade to these patched versions immediately (GitHub Advisory, Debian Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

php-laravel-framework

Affected

bullseye

php-laravel-framework: 6.20.14+dfsg-2+deb11u2

Fixed

sid

php-laravel-framework: 10.48.25+dfsg-1

Fixed

trixie

php-laravel-framework: 10.48.25+dfsg-1

Fixed

SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56829HIGH8.1
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026
CVE-2026-56827HIGH8.1
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026
CVE-2026-84997HIGH7.5
  • PHP logoPHP
  • composer://react/http
NoYesSep 16, 2026
CVE-2026-56831MEDIUM6.5
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026
CVE-2026-56830MEDIUM6.5
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management