CVE-2024-52301
Laravel Framework ≤ 6.20.45
Raw vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2024-52301 is a high-severity Argument Injection (CWE-88) vulnerability in Laravel Framework. Its CVSS base score is 8.7 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked in the top 1% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
Laravel is a PHP-based web application framework affected by CVE-2024-52301. The flaw occurs when the PHP directive register_argc_argv is enabled, allowing a specially crafted query string supplied to any URL to alter the application environment that the framework selects during request handling. The issue stems from improper handling of argv values for environment detection on non-CLI SAPIs and is tracked under CWE-88. It was resolved in Laravel releases 6.20.45, 7.30.7, 8.83.28, 9.52.17, 10.48.23, and 11.31.0 by ensuring argv values are ignored for environment detection outside CLI contexts.
An unauthenticated remote attacker can exploit the vulnerability over the network by sending a crafted HTTP request containing a malicious query string. Successful exploitation permits the attacker to force the application into an unintended environment, which can result in high-integrity impacts such as altered configuration or behavior without requiring user interaction or elevated privileges.
The GitHub Security Advisory GHSA-gv7v-rgg6-548h and the Debian LTS announcement both direct users to upgrade to one of the patched Laravel versions listed above. They note that the framework update prevents argv-based environment overrides on non-CLI SAPIs, eliminating the vector when register_argc_argv remains enabled.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-3258
Vulnerability Data
Laravel is a web application framework. 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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V1.2.5
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Developer testing can discover argument-injection flaws in command-construction code but does not stop their introduction.
Input validation directly stops construction of command strings containing unneutralized delimiters or injected arguments.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require proper input validation and command construction to prevent argument injection.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can detect argument injection but does not prevent it at the source.
Incident response procedures are triggered after an incident occurs and focus on containment, evidence collection, and root cause analysis, not on proactively discovering latent argument injection flaws in deployed code.
Training developers about secure command construction and argument handling reduces argument injection instances, but the practice is fallible and most such flaws still slip through, matching the same partial rung A.6.3 and A.8.28 hold on other developer-introduced injection flaws.
Secure coding standards explicitly require proper neutralization of command arguments, directly eliminating CWE-88.
A.8.30 carries its effect through the secure-development practices (8.25-8.29) its contract requires of the supplier, and argument injection is an ordinary software implementation weakness those practices address; the clause sits at its declared ceiling of `partial` because the underlying practices are fallible and the clause depends on them being implemented by the supplier.
A.8.8's reach is DISCLOSURE — it identifies vulnerabilities through published advisories, vendor notifications, and scanning against known CVE feeds. CWE-88 does surface as CVEs in third-party components (PHPMailer, browsers, mail clients, etc., per the observed examples), so a minority of instances are findable. The bulk of argument injection lives in custom first-party code with no published advisory, which A.8.8's disclosure-based programme does not reach — same scope seam as A.8.8 -> CWE-89.