CVE-2026-47767 — Vulnerability in symfony/symfony — CVE Details
SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.72%). Schedule for your next planned update.
Does your project use an affected symfony/symfony version?
Paste your composer.lock to check it for CVE-2026-47767 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Description
CVE-2024-50340 (GHSA-x8vp-gf4q-mw5j) addressed an issue where, with register_argc_argv=On, a crafted query string let an unauthenticated GET change the kernel environment and debug flag by feeding --env/--no-debug through $_SERVER['argv']. The fix shipped in symfony/runtime 5.4.46 / 6.4.14 / 7.1.7 gated the argv read on empty($_GET) as a proxy for "is this a CLI invocation".
That proxy is unsafe: parse_str() (which builds $_GET) and the web SAPI (which builds $_SERVER['argv'] from the raw query when register_argc_argv=On) do not agree on every input, so an attacker can craft a query that leaves $_GET empty while $_SERVER['argv'] carries the attacker's flags. SymfonyRuntime::getInput() then parses them, restoring the exact primitive CVE-2024-50340 was meant to prevent.
Preconditions and impact match the original CVE: web SAPI, register_argc_argv=On, app booted through symfony/runtime; from an unauthenticated GET an attacker can flip APP_ENV and toggle APP_DEBUG.
Resolution
SymfonyRuntime now gates the argv read on isset($_SERVER['QUERY_STRING']) rather than on empty($_GET). QUERY_STRING is the same input the SAPI uses to build argv, so the security check and the thing it protects no longer parse different sources. Worker SAPIs (FrankenPHP / RoadRunner / Swoole) keep working because the runtime constructor runs once at boot when QUERY_STRING is unset.
The patch for this issue is available here for branch 5.4.
Credits
SymfonyRuntime would like to thank 0xEr3n for reporting the issue and Nicolas Grekas for providing the fix.
Advisory Timeline
- First published June 9, 2026 (171 days ago).
- Last revised September 10, 2026 — 92 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "symfony/symfony:^7.4.12"
composer require "symfony/symfony:^8.0.12"
composer require "symfony/symfony:^6.4.40"
composer require "symfony/runtime:^8.0.12"
composer require "symfony/runtime:^5.4.52"
composer require "symfony/runtime:^7.4.12"
composer require "symfony/symfony:^5.4.52"
composer require "symfony/runtime:^6.4.40"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (8)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| symfony/symfony Packagist · Affected: v7.1.10, v7.1.11, v7.1.7, v7.1.8 (+46 more) | 7.4.12 |
| symfony/symfony Packagist · Affected: v8.0.0, v8.0.1, v8.0.10, v8.0.11 (+8 more) | 8.0.12 |
| symfony/symfony Packagist · Affected: v6.4.14, v6.4.15, v6.4.16, v6.4.17 (+22 more) | 6.4.40 |
| symfony/runtime Packagist · Affected: v8.0.0, v8.0.1, v8.0.8 | 8.0.12 |
| symfony/runtime Packagist · Affected: v5.4.46 | 5.4.52 |
| symfony/runtime Packagist · Affected: v7.1.7, v7.2.0, v7.2.0-BETA1, v7.2.0-BETA2 (+16 more) | 7.4.12 |
| symfony/symfony Packagist · Affected: v5.4.46, v5.4.47, v5.4.48, v5.4.49 (+2 more) | 5.4.52 |
| symfony/runtime Packagist · Affected: v6.4.14, v6.4.22, v6.4.23, v6.4.24 (+2 more) | 6.4.40 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-20Improper Input ValidationMITRE
- CWE-436
- CWE-74
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.3 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
References
Frequently Asked Questions
- What is CVE-2026-47767?
- SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 7.3/10).
- How do I check if my project is affected by CVE-2026-47767?
- CVE-2026-47767 affects symfony/symfony and symfony/runtime. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-47767 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 49.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2019-18889CRITICAL
Symfony Unsafe Cache Serialization Could Enable RCE
- CVE-2019-10910CRITICAL
Symfony Service IDs Allow Injection
- CVE-2017-11365CRITICAL
Symfony Incorrect Access Control
- CVE-2018-11406HIGH
Symfony CSRF Token Fixation
- CVE-2026-45077HIGH
Symfony has Unauthenticated PHP Object Deserialization in MonologBridge server:log Listener
- CVE-2026-45063HIGH
Symfony Vulnerable to Identity Spoofing via Unanchored DN Regex in X509Authenticator
- CVE-2026-45073MEDIUM
Symfony Vulnerable to SQL Injection in PdoAdapter::doClear() via Unsanitized $prefix
- CVE-2026-48784MEDIUM
Symfony: UrlGenerator Dot-Segment Encoding Skips Every Other Chained `../` or `./` → Generated URL Collapses Off-Route Under RFC 3986 Normalization