CVE-2024-50340
Ability to change environment from query in symfony/runtime
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
7.3
Ability to change environment from query in symfony/runtime
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.
- Record
CVE-2024-50340- 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 - Weakness
- CWE-74
- Updated
- 2026-11-02
EUVDEUVD-2024-3330
7.3
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.
- Record
EUVD-2024-3330- 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 - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-x8vp-gf4q-mw5j
6.9
Symfony allows changing the environment through a query
Description
When the register_argc_argv 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.
Resolution
The SymfonyRuntime now ignores the argv values for non-cli SAPIs PHP runtimes
The patch for this issue is available here for branch 5.4.
Credits
We would like to thank Vladimir Dusheyko for reporting the issue and Wouter de Jong for providing the fix.
- Record
GHSA-x8vp-gf4q-mw5j- CVSS 4.0
- 6.9 Medium
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 - 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 - Weakness
- CWE-20, CWE-74
- Updated
- 2026-11-02
NVD
7.3
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.
- Record
CVE-2024-50340- 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 - Weakness
- CWE-74
- Updated
- 2026-11-02
OSV
7.3
Ability to change environment from query in symfony/runtime
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.
- Record
CVE-2024-50340- 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 - Weakness
- CWE-74
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-50340
7.3
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.
- Record
DEBIAN-CVE-2024-50340- 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 - Updated
- 2026-11-02
OSVGHSA-x8vp-gf4q-mw5j
6.9
Symfony allows changing the environment through a query
Description
When the register_argc_argv 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.
Resolution
The SymfonyRuntime now ignores the argv values for non-cli SAPIs PHP runtimes
The patch for this issue is available here for branch 5.4.
Credits
We would like to thank Vladimir Dusheyko for reporting the issue and Wouter de Jong for providing the fix.
- Record
GHSA-x8vp-gf4q-mw5j- CVSS 4.0
- 6.9 Medium
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 - 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 - Weakness
- CWE-20, CWE-74
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-50340
7.3
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.
- Record
UBUNTU-CVE-2024-50340- 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 - Updated
- 2026-11-02
OSVUSN-7272-1 No score
symfony vulnerabilities
Soner Sayakci discovered that Symfony incorrectly handled cookie storage in the web cache. An attacker could possibly use this issue to obtain sensitive information and access unauthorized resources. (CVE-2022-24894)
Marco Squarcina discovered that Symfony incorrectly handled the storage of user session information. An attacker could possibly use this issue to perform a cross-site request forgery (CSRF) attack. (CVE-2022-24895)
Pierre Rudloff discovered that Symfony incorrectly checked HTML input. An attacker could possibly use this issue to perform cross site scripting. (CVE-2023-46734)
Vladimir Dusheyko discovered that Symfony incorrectly sanitized special input with a PHP directive in URL query strings. An attacker could possibly use this issue to expose sensitive information or cause a denial of service. This issue only affected Ubuntu 24.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-50340)
Oleg Andreyev, Antoine Makdessi, and Moritz Rauch discovered that Symfony incorrectly handled user authentication. An attacker could possibly use this issue to access unauthorized resources and expose sensitive information. This issue was only addressed in Ubuntu 24.04 LTS. (CVE-2024-50341, CVE-2024-51996)
Linus Karlsson and Chris Smith discovered that Symfony returned internal host information during host resolution. An attacker could possibly use this issue to obtain sensitive information. This issue only affected Ubuntu 24.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-50342)
It was discovered that Symfony incorrectly parsed user input through regular expressions. An attacker could possibly use this issue to expose sensitive information. (CVE-2024-50343)
Sam Mush discovered that Symfony incorrectly parsed URIs with special characters. An attacker could possibly use this issue to perform phishing attacks. (CVE-2024-50345)
- Record
USN-7272-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
symfony/runtimePackagist |
5.3.0 up to 5.4.46 | 5.4.46 |
symfony/runtimePackagist |
6.0.0 up to 6.4.14 | 6.4.14 |
symfony/runtimePackagist |
7.0.0 up to 7.1.7 | 7.1.7 |
symfony/symfonyPackagist |
5.3.0 up to 5.4.46 | 5.4.46 |
symfony/symfonyPackagist |
6.0.0 up to 6.4.14 | 6.4.14 |
symfony/symfonyPackagist |
7.0.0 up to 7.1.7 | 7.1.7 |
symfonyDebian:12 |
before 5.4.53+dfsg-0+deb12u1, plus listed versions 5.4.23+dfsg-15.4.23+dfsg-1+deb12u15.4.23+dfsg-1+deb12u25.4.23+dfsg-1+deb12u35.4.23+dfsg-1+deb12u4 Show 17 moreShow less5.4.23+dfsg-1+deb12u55.4.24+dfsg-15.4.25+dfsg-15.4.27+dfsg-15.4.28+dfsg-15.4.29+dfsg-15.4.30+dfsg-15.4.31+dfsg-15.4.31+dfsg-25.4.32+dfsg-15.4.33+dfsg-15.4.34+dfsg-15.4.34+dfsg-25.4.35+dfsg-15.4.35+dfsg-25.4.35+dfsg-35.4.52+dfsg-0+deb12u1 |
5.4.53+dfsg-0+deb12u1 |
symfonyDebian:13 |
before 6.4.41+dfsg-0+deb13u1, plus listed versions 6.4.21+dfsg-26.4.21+dfsg-2+deb13u16.4.24+dfsg-16.4.25+dfsg-16.4.40+dfsg-0+deb13u1 |
6.4.41+dfsg-0+deb13u1 |
symfonyDebian:14 |
before 6.4.14+dfsg-1 | 6.4.14+dfsg-1 |
symfonyDebian:12 From an advisory covering 4 CVEs |
before 5.4.23+dfsg-1+deb12u3, plus listed versions 5.4.23+dfsg-15.4.23+dfsg-1+deb12u15.4.23+dfsg-1+deb12u2 |
5.4.23+dfsg-1+deb12u3 |
Show 13 moreShow less
| Package | Affected | Fixed |
|---|---|---|
symfony/runtimePackagist |
5.3.0 up to 5.4.46, plus listed versions v5.3.0v5.3.10v5.3.11v5.3.13v5.3.14 Show 22 moreShow lessv5.3.2v5.3.3v5.3.4v5.4.0v5.4.0-BETA1v5.4.0-BETA2v5.4.0-RC1v5.4.1v5.4.11v5.4.19v5.4.21v5.4.22v5.4.25v5.4.26v5.4.3v5.4.35v5.4.39v5.4.40v5.4.45v5.4.5v5.4.7v5.4.8 |
5.4.46 |
symfony/runtimePackagist |
6.0.0 up to 6.4.14, plus listed versions v6.0.0v6.0.11v6.0.19v6.0.3v6.0.5 Show 31 moreShow lessv6.0.7v6.0.8v6.1.0v6.1.0-BETA1v6.1.0-RC1v6.1.1v6.1.11v6.1.3v6.2.0v6.2.0-BETA1v6.2.0-BETA3v6.2.0-RC1v6.2.12v6.2.13v6.2.5v6.2.7v6.2.8v6.3.0v6.3.0-BETA1v6.3.0-RC1v6.3.1v6.3.12v6.3.2v6.4.0v6.4.0-BETA1v6.4.0-RC1v6.4.12v6.4.13v6.4.3v6.4.7v6.4.8 |
6.4.14 |
symfony/runtimePackagist |
7.0.0 up to 7.1.7, plus listed versions v7.0.0v7.0.3v7.0.7v7.0.8v7.1.0 Show 4 moreShow lessv7.1.0-BETA1v7.1.0-RC1v7.1.1v7.1.6 |
7.1.7 |
symfony/symfonyPackagist |
5.3.0 up to 5.4.46, plus listed versions v5.3.0v5.3.1v5.3.10v5.3.11v5.3.12 Show 45 moreShow lessv5.3.13v5.3.14v5.3.15v5.3.16v5.3.2v5.3.3v5.3.4v5.3.5v5.3.6v5.3.7v5.3.8v5.3.9v5.4.0v5.4.0-BETA1v5.4.0-BETA2v5.4.0-BETA3v5.4.0-RC1v5.4.1v5.4.10v5.4.11v5.4.12v5.4.13v5.4.14v5.4.15v5.4.16v5.4.17v5.4.18v5.4.19v5.4.2v5.4.20v5.4.21v5.4.22v5.4.23v5.4.24v5.4.25v5.4.26v5.4.27v5.4.28v5.4.29v5.4.3v5.4.30v5.4.31v5.4.32v5.4.33v5.4.34 |
5.4.46 |
symfony/symfonyPackagist |
6.0.0 up to 6.4.14, plus listed versions v6.0.0v6.0.1v6.0.10v6.0.11v6.0.12 Show 45 moreShow lessv6.0.13v6.0.14v6.0.15v6.0.16v6.0.17v6.0.18v6.0.19v6.0.2v6.0.20v6.0.3v6.0.4v6.0.5v6.0.6v6.0.7v6.0.8v6.0.9v6.1.0v6.1.0-BETA1v6.1.0-BETA2v6.1.0-RC1v6.1.1v6.1.10v6.1.11v6.1.12v6.1.2v6.1.3v6.1.4v6.1.5v6.1.6v6.1.7v6.1.8v6.1.9v6.2.0v6.2.0-BETA1v6.2.0-BETA2v6.2.0-BETA3v6.2.0-RC1v6.2.0-RC2v6.2.1v6.2.10v6.2.11v6.2.12v6.2.13v6.2.14v6.2.2 |
6.4.14 |
symfony/symfonyPackagist |
7.0.0 up to 7.1.7, plus listed versions v7.0.0v7.0.1v7.0.10v7.0.2v7.0.3 Show 15 moreShow lessv7.0.4v7.0.5v7.0.6v7.0.7v7.0.8v7.0.9v7.1.0v7.1.0-BETA1v7.1.0-RC1v7.1.1v7.1.2v7.1.3v7.1.4v7.1.5v7.1.6 |
7.1.7 |
symfonyUbuntu:Pro:22.04:LTS |
before 5.4.4+dfsg-1ubuntu8+esm1, plus listed versions 5.2.6+dfsg-1ubuntu75.4.4+dfsg-1ubuntu8 |
5.4.4+dfsg-1ubuntu8+esm1 |
symfonyUbuntu:Pro:24.04:LTS |
before 6.4.5+dfsg-3ubuntu3+esm1, plus listed versions 5.4.23+dfsg-1ubuntu15.4.35+dfsg-3ubuntu16.4.5+dfsg-3ubuntu26.4.5+dfsg-3ubuntu3 |
6.4.5+dfsg-3ubuntu3+esm1 |
symfonyUbuntu:25.10 |
All versions, plus listed versions 6.4.18+dfsg-1ubuntu16.4.21+dfsg-26.4.21+dfsg-2ubuntu16.4.24+dfsg-1 |
None known |
symfonyUbuntu:26.04:LTS |
All versions, plus listed versions 6.4.24+dfsg-17.4.5+dfsg-1ubuntu17.4.6+dfsg-2ubuntu17.4.7+dfsg-1ubuntu1 |
None known |
symfonyUbuntu:Pro:20.04:LTS From an advisory covering 9 CVEs |
before 4.3.8+dfsg-1ubuntu1+esm2, plus listed versions 4.3.4+dfsg-1ubuntu14.3.8+dfsg-1ubuntu14.3.8+dfsg-1ubuntu1+esm1 |
4.3.8+dfsg-1ubuntu1+esm2 |
symfonyUbuntu:Pro:22.04:LTS From an advisory covering 9 CVEs |
before 5.4.4+dfsg-1ubuntu8+esm1, plus listed versions 5.2.6+dfsg-1ubuntu75.4.4+dfsg-1ubuntu8 |
5.4.4+dfsg-1ubuntu8+esm1 |
symfonyUbuntu:Pro:24.04:LTS From an advisory covering 9 CVEs |
before 6.4.5+dfsg-3ubuntu3+esm1, plus listed versions 5.4.23+dfsg-1ubuntu15.4.35+dfsg-3ubuntu16.4.5+dfsg-3ubuntu26.4.5+dfsg-3ubuntu3 |
6.4.5+dfsg-3ubuntu3+esm1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | Nyamort/CVE-2024-50340 | 2024-11-06 |
| Nuclei | Symfony Profiler - Remote Access via Injected Arguments |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, exploits, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, Nuclei, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-50340 is a high vulnerability (CVSS 7.3) in Sensiolabs Symfony, published November 6, 2024. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 61.8%, the 99th percentile. Fixed in symfony/runtime 5.4.46.
References
github.com/symfony/symfony/security/advisories/GHSA-x8vp-gf4q-mw5j
github.com/symfony/symfony/commit/a77b308c3f179ed7c8a8bc295f82b2d6ee3493fa
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/runtime/CVE-2024-50340.yaml
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50340.yaml
symfony.com/cve-2024-50340
nvd.nist.gov/vuln/detail/CVE-2024-50340
Show 16 moreShow less
github.com/advisories/GHSA-x8vp-gf4q-mw5j
github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50340.json
security-tracker.debian.org/tracker/CVE-2024-50340
github.com/symfony/symfony
ubuntu.com/security/CVE-2024-50340
cve.org/CVERecord?id=CVE-2024-50340
github.com/symfony/symfony/commit/61b32ab2a30000f53a1ca97ad115069543deae34
ubuntu.com/security/notices/USN-7272-1
ubuntu.com/security/CVE-2022-24894
ubuntu.com/security/CVE-2022-24895
ubuntu.com/security/CVE-2023-46734
ubuntu.com/security/CVE-2024-50341
ubuntu.com/security/CVE-2024-50342
ubuntu.com/security/CVE-2024-50343
ubuntu.com/security/CVE-2024-50345
ubuntu.com/security/CVE-2024-51996
Left out here: 61 versions. The JSON record has them.