CVE-2024-50345 Open redirect via browser-sanitized URLs in symfony/http-foundation
Attackers can exploit inconsistent URL parsing to redirect users to malicious domains, affecting applications using the Symfony HTTP Foundation library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-50345?
CVE-2024-50345 is a low-severity vulnerability in Sensiolabs Symfony, published on 6 Nov 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-601
Which versions are affected by CVE-2024-50345?
6 open source packages ship an affected version, including symfony/http-foundation. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
symfony/http-foundation Packagist | All versions | 5.4.46 |
symfony/http-foundation Packagist | All versions | 5.4.46 |
symfony/http-foundation Packagist | From 6.0.0 | 6.4.14 |
symfony/http-foundation Packagist | From 6.0.0 | 6.4.14 |
symfony/http-foundation Packagist | From 7.0.0 | 7.1.7 |
symfony/http-foundation Packagist | From 7.0.0 | 7.1.7 |
Products include Sensiolabs Symfony.
How do I fix CVE-2024-50345?
Upgrade symfony/http-foundation to a fixed version for your release line: 5.4.46, 6.4.14 or 7.1.7.
Is CVE-2024-50345 being exploited?
There is no known exploitation of CVE-2024-50345 in the wild and no public exploit code.
Other vulnerabilities in Sensiolabs Symfony
Sources
Also known as CLSA-2026-1774399515, CLSA-2026-1790173339, DEBIAN-CVE-2024-50345, GHSA-mrqx-rp3w-jpjp, UBUNTU-CVE-2024-50345.