CVE-2024-50340
MediumExploitedSymfony allows changing the environment through a query
Published Nov 6, 2024 · Updated Aug 12, 2026 · Also known as DEBIAN-CVE-2024-50340, DSA-5809-1, GHSA-x8vp-gf4q-mw5j, UBUNTU-CVE-2024-50340
Key Facts
Patch immediately- CVE-2024-50340 is a medium-severity vulnerability (CVSS 6.9 v4) affecting symfony/runtime (composer), symfony/symfony (composer), symfony (debian).
- It is exploited in the wild, listed in Industry KEV feed, CIRCL KEV since Sep 10, 2026. No public exploit code is known.
- EPSS estimates a 64% probability of exploitation in the next 30 days.
- Fixed versions are available, including symfony 5.4.23+dfsg-1+deb12u3, symfony 5.4.4+dfsg-1ubuntu8+esm1, symfony 5.4.53+dfsg-0+deb12u1.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
CVSS v4
6.9
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
EPSS (30-day exploit likelihood)
64%
Higher than 99.2% of all scored CVEs
Exploited in the wild
Yes
2 catalog listings
Public exploit code
None known
Get the full CVE-2024-50340 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Sep 10, 2026 | n/a | Not reported |
| CIRCL KEV | Sep 10, 2026 | n/a | Not reported |
Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Affected Products
17 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| symfony/runtimecomposer | >= 7.0.0 | 7.1.7 |
| symfony/symfonycomposer | >= 7.0.0 | 7.1.7 |
| symfonydebian | >= < 5.4.46 | 5.4.23+dfsg-1+deb12u3 |
Patched Releases
symfony
5.4.23+dfsg-1+deb12u3, 5.4.4+dfsg-1ubuntu8+esm1, 5.4.53+dfsg-0+deb12u1, 6.4.14+dfsg-1, 6.4.41+dfsg-0+deb13u1, 6.4.5+dfsg-3ubuntu3+esm1
symfony/runtime
5.4.46, 6.4.14, 7.1.7
symfony/symfony
5.4.46, 6.4.14, 7.1.7
Timeline
Publicly disclosed
Nov 6, 2024
Last updated
Aug 12, 2026
Added to Industry KEV feed
Sep 10, 2026
Added to CIRCL KEV
Sep 10, 2026
Weakness Type
- CWE-20 Improper Input Validation
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50340.json
- advisoryhttps://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/runtime/CVE-2024-50340.yaml
- advisoryhttps://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50340.yaml
- advisoryhttps://github.com/symfony/symfony/commit/61b32ab2a30000f53a1ca97ad115069543deae34
FAQ
Common Questions.
symfony/runtime is a module for the Symphony PHP framework which enables decoupling PHP applications from global state.
Affected: symfony/runtime (composer) versions >= 7.0.0; symfony/symfony (composer) versions >= 7.0.0; symfony (debian) versions >= < 5.4.46. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed, CIRCL KEV since Sep 10, 2026.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including symfony 5.4.23+dfsg-1+deb12u3, symfony 5.4.4+dfsg-1ubuntu8+esm1, symfony 5.4.53+dfsg-0+deb12u1.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2024-50340 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo