CVE-2024-50345 — Vulnerability in symfony/http-foundation
Symfony vulnerable to open redirect via browser-sanitized URLs
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.77%). Schedule for your next planned update.
Does your project use an affected symfony/http-foundation version?
Paste your composer.lock to check it for CVE-2024-50345 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published November 6, 2024 (751 days ago).
- Last revised November 3, 2025 — 362 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "symfony/http-foundation:^5.4.46"
composer require "symfony/http-foundation:^7.1.7"
composer require "symfony/http-foundation:^6.4.14"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| symfony/http-foundation Packagist · Affected: 2.0.4, 2.0.5, 2.0.6, 2.0.7 (+569 more) | 5.4.46 |
| symfony/http-foundation Packagist · Affected: v7.0.0, v7.0.10, v7.0.3, v7.0.4 (+10 more) | 7.1.7 |
| symfony/http-foundation Packagist · Affected: v6.0.0, v6.0.1, v6.0.10, v6.0.11 (+72 more) | 6.4.14 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-601Open RedirectMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 3.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
References
- https://github.com/symfony/symfony/security/advisories/GHSA-mrqx-rp3w-jpjpWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-50345ADVISORY
- https://github.com/symfony/symfony/commit/5a9b08e5740af795854b1b639b7d45b9cbfe8819WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2024-50345.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50345.yamlWEB
- https://github.com/symfony/symfonyPACKAGE
- https://lists.debian.org/debian-lts-announce/2025/05/msg00051.htmlWEB
- https://symfony.com/cve-2024-50345WEB
- https://url.spec.whatwg.orgWEB
Frequently Asked Questions
- What is CVE-2024-50345?
- Symfony vulnerable to open redirect via browser-sanitized URLs. This vulnerability has been assigned a severity rating of LOW (CVSS score: 3.1/10).
- How do I check if my project is affected by CVE-2024-50345?
- CVE-2024-50345 affects symfony/http-foundation. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-50345 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is difficult, or the impact is minor.
This is an above-median EPSS score — 52.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2019-10913CRITICAL
Invalid HTTP method overrides allow possible XSS or other attacks in Symfony
- CVE-2025-64500HIGH
Symfony's incorrect parsing of PATH_INFO can lead to limited authorization bypass
- CVE-2026-108082HIGH
Symfony: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header
- CVE-2026-102279LOW
Laravel: XSS in Debug Page Information
- CVE-2026-48805LOW
Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`