CVE-2024-50345: Symfony vulnerable to open redirect via browser-sanitized URLs
Description The Request class, does not parse URI with special characters the same way browsers do. As a result, an attacker can trick a validator relying on the Request class to redirect users to another domain. Resolution The Request::create methods now assert the URI does not contain invalid characters as defined by https://url.spec.whatwg.org/ The patch for this issue is available here for branch 5.4.
Published Nov 6, 2024 · Updated Nov 3, 2025
Affected packages
symfony/http-foundation
- Ecosystem
- Composer (PHP)
- Affected
- < 5.4.46
- Fixed in
- 5.4.46
- Check
composer show symfony/http-foundation
symfony/http-foundation
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.0.0, < 6.4.14
- Fixed in
- 6.4.14
- Check
composer show symfony/http-foundation
symfony/http-foundation
- Ecosystem
- Composer (PHP)
- Affected
- >= 7.0.0, < 7.1.7
- Fixed in
- 7.1.7
- Check
composer show symfony/http-foundation
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Description
The Request class, does not parse URI with special characters the same way browsers do. As a result, an attacker can trick a validator relying on the Request class to redirect users to another domain.
Resolution
The Request::create methods now assert the URI does not contain invalid characters as defined by https://url.spec.whatwg.org/
The patch for this issue is available here for branch 5.4.
Credits
We would like to thank Sam Mush - IPASSLab && ZGC Lab for reporting the issue and Nicolas Grekas for providing the fix.
Credited to nicolas-grekas, zer0yu.
References
- https://github.com/symfony/symfony/security/advisories/GHSA-mrqx-rp3w-jpjp
- https://github.com/symfony/symfony/commit/5a9b08e5740af795854b1b639b7d45b9cbfe8819
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2024-50345.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50345.yaml
- https://symfony.com/cve-2024-50345
- https://nvd.nist.gov/vuln/detail/CVE-2024-50345
- https://url.spec.whatwg.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html
- https://github.com/advisories/GHSA-mrqx-rp3w-jpjp
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-108082
Symfony: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header
high8.7Oct 27, 2026CVE-2026-48736
Symfony: IpUtils::PRIVATE_SUBNETS Omits IPv6 Transition Forms (6to4, NAT64, Teredo, IPv4-compatible): SSRF Bypass in NoPrivateNetworkHttpClient
medium6.3Jun 15, 2026CVE-2025-64500
Symfony's incorrect parsing of PATH_INFO can lead to limited authorization bypass
high7.3Nov 12, 2025CVE-2014-5244
Symfony vulnerable to denial of service via a malicious HTTP Host header
high7.5May 30, 2024CVE-2014-6061
Symfony has a security issue when parsing the Authorization header
medium5.3May 30, 2024CVE-2015-2309
Symfony has unsafe methods in the Request class
medium5.3May 30, 2024
