CVE-2024-50345
LOW3.1EPSS 0.39%Symfony vulnerable to open redirect via browser-sanitized URLs
Published: 11/6/2024Modified: 5/27/2026
Description
symfony/http-foundation is a module for the Symphony PHP framework which defines an object-oriented layer for the HTTP specification. 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. The `Request::create` methods now assert the URI does not contain invalid characters as defined by https://url.spec.whatwg.org/. This issue has been patched in versions 5.4.46, 6.4.14, and 7.1.7. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected packages (2)
- Debian/symfonyfrom 0, < 4.4.19+dfsg-2+deb11u7
- Packagist/symfony/http-foundationfrom 0, < 5.4.46
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | LOW3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
References (10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-50345
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-50345
- PATCHhttps://github.com/symfony/symfony
- WEBhttps://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2024-50345.yaml
- WEBhttps://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50345.yaml
- WEBhttps://github.com/symfony/symfony/commit/5a9b08e5740af795854b1b639b7d45b9cbfe8819
- WEBhttps://github.com/symfony/symfony/security/advisories/GHSA-mrqx-rp3w-jpjp
- WEBhttps://lists.debian.org/debian-lts-announce/2025/05/msg00051.html
- WEBhttps://symfony.com/cve-2024-50345
- WEBhttps://url.spec.whatwg.org