cve.bz

CVE-2024-50340 symfony symfony: Injection

7.3 highEPSS 62%Fix available

High (7.3) in symfony symfony. EPSS 62% estimated probability of exploitation activity in the next 30 days. Fixed in symfony/runtime 5.4.46, 6.4.14, 7.1.7.

On this page
symfony/runtime is a module for the Symphony PHP framework which enables decoupling PHP applications from global state. When the `register_argv_argc` php directive is set to `on` , and users call any URL with a special crafted query string, they are able to change the environment or debug mode used by the kernel when handling the request. As of versions 5.4.46, 6.4.14, and 7.1.7 the `SymfonyRuntime` now ignores the `argv` values for non-SAPI PHP runtimes. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Severity

CVSS 3.1

7.3 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS
62% (unchanged from 62% a week ago; 64% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-11-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-50340 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-50340?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-50340?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-50340 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
symfony< 5.4.46
symfony>= 6.0.0, < 6.4.14
symfony>= 7.0.0, < 7.1.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x8vp-gf4q-mw5jPackagistsymfony/runtime>=5.3.0 <5.4.465.4.46
GHSA-x8vp-gf4q-mw5jPackagistsymfony/runtime>=6.0.0 <6.4.146.4.14
GHSA-x8vp-gf4q-mw5jPackagistsymfony/runtime>=7.0.0 <7.1.77.1.7
GHSA-x8vp-gf4q-mw5jPackagistsymfony/symfony>=5.3.0 <5.4.465.4.46
GHSA-x8vp-gf4q-mw5jPackagistsymfony/symfony>=6.0.0 <6.4.146.4.14
GHSA-x8vp-gf4q-mw5jPackagistsymfony/symfony>=7.0.0 <7.1.77.1.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12symfony5.4.53+dfsg-0+deb12u1DEBIAN-CVE-2024-50340 DSA-5809-1 DSA-6317-1
Debian13symfony6.4.41+dfsg-0+deb13u1DEBIAN-CVE-2024-50340 DSA-6312-1
Debian14symfony6.4.14+dfsg-1DEBIAN-CVE-2024-50340
Ubuntu25.10, 26.04:LTSsymfonyno fix listedUBUNTU-CVE-2024-50340
UbuntuPro:20.04:LTSsymfony4.3.8+dfsg-1ubuntu1+esm2USN-7272-1
UbuntuPro:22.04:LTSsymfony5.4.4+dfsg-1ubuntu8+esm1UBUNTU-CVE-2024-50340 USN-7272-1
UbuntuPro:24.04:LTSsymfony6.4.5+dfsg-3ubuntu3+esm1UBUNTU-CVE-2024-50340 USN-7272-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON