Skip to content
OpenAdvisories
High · 7.3 Scanner template Public exploit CVE-2024-50340 EUVD-2024-3330GHSA-x8vp-gf4q-mw5j

Ability to change environment from query in symfony/runtime

Published Nov 6, 2024 · Updated Nov 7, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
symfony symfony < 5.4.46, >= 6.0.0, < 6.4.14, >= 7.0.0, < 7.1.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 symfony 6.4.14+dfsg-1 —
Debian 13 symfony 6.4.41+dfsg-0+deb13u1 —
Debian 12 symfony 5.4.53+dfsg-0+deb12u1 DSA-5809-1
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS symfony No fix yet —
Ubuntu 25.10 symfony No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS symfony 6.4.5+dfsg-3ubuntu3+esm1 USN-7272-1
Ubuntu Pro 22.04 LTS symfony 5.4.4+dfsg-1ubuntu8+esm1 USN-7272-1
Ubuntu Pro 20.04 LTS symfony 4.3.8+dfsg-1ubuntu1+esm2 USN-7272-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist symfony/runtime >= 5.3.0, < 5.4.46 5.4.46 GHSA-x8vp-gf4q-mw5j
Packagist symfony/runtime >= 6.0.0, < 6.4.14 6.4.14 GHSA-x8vp-gf4q-mw5j
Packagist symfony/runtime >= 7.0.0, < 7.1.7 7.1.7 GHSA-x8vp-gf4q-mw5j
Packagist symfony/symfony >= 5.3.0, < 5.4.46 5.4.46 GHSA-x8vp-gf4q-mw5j
Packagist symfony/symfony >= 6.0.0, < 6.4.14 6.4.14 GHSA-x8vp-gf4q-mw5j
Packagist symfony/symfony >= 7.0.0, < 7.1.7 7.1.7 GHSA-x8vp-gf4q-mw5j

Advisories 2

References