Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/runtime
  4. ›
  5. CVE-2024-50340

CVE-2024-50340: Symfony allows changing the environment through a query

November 6, 2024

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.

References

  • 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
  • github.com/advisories/GHSA-x8vp-gf4q-mw5j
  • github.com/symfony/symfony
  • github.com/symfony/symfony/commit/a77b308c3f179ed7c8a8bc295f82b2d6ee3493fa
  • github.com/symfony/symfony/security/advisories/GHSA-x8vp-gf4q-mw5j
  • nvd.nist.gov/vuln/detail/CVE-2024-50340
  • symfony.com/cve-2024-50340

Code Behaviors & Features

Detect and mitigate CVE-2024-50340 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 5.3.0 before 5.4.46, all versions starting from 6.0.0 before 6.4.14, all versions starting from 7.0.0 before 7.1.7

Fixed versions

  • 5.4.46
  • 6.4.14
  • 7.1.7

Solution

Upgrade to versions 5.4.46, 6.4.14, 7.1.7 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

packagist/symfony/runtime/CVE-2024-50340.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:16 +0000.