Loading...
Skip to main content

CVE-2026-47767 — Vulnerability in symfony/symfony — CVE Details

MEDIUM

SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch

Published June 9, 2026Updated September 10, 2026Source: osv

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](https://github.com/symfony/symfony/commit/3228c3806ee511008bea19a95084d460b17e5d25) 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 (125 days ago).
  • Last revised September 10, 2026 — 92 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update symfony/symfony to 7.4.12 or later
composer require "symfony/symfony:^7.4.12"
Composer
Update symfony/symfony to 8.0.12 or later
composer require "symfony/symfony:^8.0.12"
Composer
Update symfony/symfony to 6.4.40 or later
composer require "symfony/symfony:^6.4.40"
Composer
Update symfony/runtime to 8.0.12 or later
composer require "symfony/runtime:^8.0.12"
Composer
Update symfony/runtime to 5.4.52 or later
composer require "symfony/runtime:^5.4.52"
Composer
Update symfony/runtime to 7.4.12 or later
composer require "symfony/runtime:^7.4.12"
Composer
Update symfony/symfony to 5.4.52 or later
composer require "symfony/symfony:^5.4.52"
Composer
Update symfony/runtime to 6.4.40 or later
composer require "symfony/runtime:^6.4.40"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (8)

Affects 1 ecosystem: packagist (2).

PackageEcosystemAffectedFixed In
symfony/symfony
packagist
v7.1.10, v7.1.11, v7.1.7, v7.1.8 (+46 more)7.4.12
symfony/symfony
packagist
v8.0.0, v8.0.1, v8.0.10, v8.0.11 (+8 more)8.0.12
symfony/symfony
packagist
v6.4.14, v6.4.15, v6.4.16, v6.4.17 (+22 more)6.4.40
symfony/runtime
packagist
v8.0.0, v8.0.1, v8.0.88.0.12
symfony/runtime
packagist
v5.4.465.4.52
symfony/runtime
packagist
v7.1.7, v7.2.0, v7.2.0-BETA1, v7.2.0-BETA2 (+16 more)7.4.12
symfony/symfony
packagist
v5.4.46, v5.4.47, v5.4.48, v5.4.49 (+2 more)5.4.52
symfony/runtime
packagist
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.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-47767 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.3

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-fqc7-9xjw-jrh3

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies