# Symfony allows changing the environment through a query

Advisory record · `GHSA-x8vp-gf4q-mw5j`

- **Identifiers:** `GHSA-x8vp-gf4q-mw5j` · `CVE-2024-50340` · `PKSA-2dqt-6z5j-rcvr` · `PKSA-d1rr-z8zb-qnm7`
- **State:** Confirmed
- **Severity:** CVSS 7.3 High
- **Critical:** Yes: CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-20](https://cwe.mitre.org/data/definitions/20.html) · [CWE-74](https://cwe.mitre.org/data/definitions/74.html)
- **Tags:** [Other injection](https://agentprime.io/advisories/tag/injection.md) · [CWE-20](https://agentprime.io/advisories/tag/cwe-20.md)
- **Published:** 6 Nov 2024
- **Updated:** 7 Nov 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 Nov 2024, 15:11 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 7.3 (7.0 or more) and EPSS 0.62 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `symfony/runtime` (Packagist): affected `>=5.3.0, <5.4.46 || >=6.0.0, <6.4.14 || >=7.0.0, <7.1.7`; fixed in `5.4.46`, `6.4.14`, `7.1.7`
- `symfony/symfony` (Packagist): affected `>=5.3.0, <5.4.46 || >=6.0.0, <6.4.14 || >=7.0.0, <7.1.7`; fixed in `5.4.46`, `6.4.14`, `7.1.7`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Symfony's symfony/runtime and symfony/symfony packages are affected in versions from 5.3.0 to before 5.4.46, from 6.0.0 to before 6.4.14, and from 7.0.0 to before 7.1.7. When the PHP directive register_argc_argv is enabled, an attacker can send a request to any URL with a specially crafted query string to change the environment or debug mode used by the kernel. Upgrade symfony/runtime and symfony/symfony to 5.4.46, 6.4.14, or 7.1.7, depending on your branch.

Written 4 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.3 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.62, the 99th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 6 Nov 2024, 10:02 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/symfony/symfony/security/advisories/GHSA-x8vp-gf4q-mw5j)
- 31 Oct 2026, 14:29 UTC: First seen by agentprime
- 31 Oct 2026, 14:29 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-x8vp-gf4q-mw5j)

## Sources

- [GitHub Advisory Database: GHSA-x8vp-gf4q-mw5j](https://github.com/advisories/GHSA-x8vp-gf4q-mw5j)
- [OSV: GHSA-x8vp-gf4q-mw5j](https://osv.dev/vulnerability/GHSA-x8vp-gf4q-mw5j)
- <https://github.com/symfony/symfony/security/advisories/GHSA-x8vp-gf4q-mw5j>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-50340>
- <https://github.com/symfony/symfony/commit/a77b308c3f179ed7c8a8bc295f82b2d6ee3493fa>
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/runtime/CVE-2024-50340.yaml>
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50340.yaml>
- <https://github.com/symfony/symfony>
- <https://symfony.com/cve-2024-50340>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-x8vp-gf4q-mw5j>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-x8vp-gf4q-mw5j/>. Everything for agents: <https://agentprime.io/llms.txt>.
