Symfony: SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.4.52, 6.4.40, 7.4.12, 8.0.12
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: total
Summary
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 5.4.46 until 5.4.52, 6.4.40, 7.4.12, and 8.0.12, the CVE-2024-50340 fix gated runtime argv parsing on empty($_GET), but parse_str() and the web SAPI can disagree, allowing a crafted query string to leave $_GET empty while $_SERVER['argv'] still carries attacker-controlled --env or --no-debug flags that change APP_ENV or APP_DEBUG. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: total
- Record last updated
Affected versions
- symfony symfony
From 5.4.46 · fixed in 5.4.52; From 6.4.14 · fixed in 6.4.40; From 7.1.7 · fixed in 7.4.12; From 8.0.0-BETA1 · fixed in 8.0.12
- symfony runtime
From 5.4.46 · fixed in 5.4.52; From 6.4.14 · fixed in 6.4.40; From 7.1.7 · fixed in 7.4.12; From 8.0.0-BETA1 · fixed in 8.0.12
- symfony/runtimePackagist
From 5.4.46 · fixed in 5.4.52
- symfony/runtimePackagist
From 6.4.14 · fixed in 6.4.40
- symfony/runtimePackagist
From 7.1.7 · fixed in 7.4.12
- symfony/runtimePackagist
From 8.0.0 · fixed in 8.0.12
- symfony/symfonyPackagist
From 5.4.46 · fixed in 5.4.52
- symfony/symfonyPackagist
From 6.4.14 · fixed in 6.4.40
- symfony/symfonyPackagist
From 7.1.7 · fixed in 7.4.12
- symfony/symfonyPackagist
From 8.0.0 · fixed in 8.0.12