Description
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.
Published: 2026-07-14
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From version 5.4.46 up to 5.4.52, 6.4.40, 7.4.12, and 8.0.12, the patch for CVE‑2024‑50340 gated runtime argv parsing based on an empty $_GET value, but parse_str() and the web SAPI can disagree. A crafted query string can leave $_GET empty while $_SERVER["argv"] still carries attacker‑controlled --env or --no-debug flags that change APP_ENV or APP_DEBUG. This allows an attacker to force the application into a different environment or enable debugging without authentication. The issue is fixed in the mentioned versions, and the weakness is a parsing mismatch described by CWE‑436.

Affected Systems

The vulnerability affects Symfony Runtime and core Symfony packages where the patch for CVE‑2024‑50340 was not applied. Specifically, versions 5.4.46 through 5.4.52, 6.4.40, 7.4.12, and 8.0.12 are impacted; the issue is intended to be resolved in those releases and later ones.

Risk and Exploitability

The CVSS score of 8.3 indicates high impact, and the EPSS score of less than 1 percent shows that exploitation is considered unlikely at present. The vulnerability is not listed in the CISA KEV catalog, and it can be exploited by sending a specially crafted HTTP GET request containing --env or --no-debug flags to a public‑facing Symfony application. No additional privileges or special conditions are required beyond the ability to issue a web request, making this a low‑barrier remote attack vector.

Generated by OpenCVE AI on July 31, 2026 at 05:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Symfony to at least version 5.4.52, 6.4.40, 7.4.12, or 8.0.12 where the runtime parsing fix is included.
  • Configure the application’s environment so that APP_ENV and APP_DEBUG cannot be altered via query parameters, for example by removing any code that propagates those variables from user input.
  • If upgrading immediately is not possible, block or sanitize query strings containing "--env" or "--no-debug" parameters at the web server or application firewall level.

Generated by OpenCVE AI on July 31, 2026 at 05:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fqc7-9xjw-jrh3 SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch
History

Mon, 27 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Symfony
Symfony runtime
Symfony symfony
Vendors & Products Symfony
Symfony runtime
Symfony symfony

Thu, 16 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 14 Jul 2026 19:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Symfony: SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch
Weaknesses CWE-436
References
Metrics cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-16T14:34:59.539Z

Reserved: 2026-05-19T22:36:16.882Z

Link: CVE-2026-47767

cve-icon Vulnrichment

Updated: 2026-07-16T14:34:53.407Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T06:00:16Z

Weaknesses