CVE-2024-50345
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-50345
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 5.4.23+dfsg-1+deb12u3 |
| debian | bullseye | fixed | 4.4.19+dfsg-2+deb11u7 |
| debian | forky | fixed | 6.4.14+dfsg-1 |
| debian | sid | fixed | 6.4.14+dfsg-1 |
| debian | trixie | fixed | 6.4.14+dfsg-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | symfony/http-foundation | <5.4.46 | 5.4.46 |
| Packagist | symfony/http-foundation | >=6.0.0,<6.4.14 | 6.4.14 |
| Packagist | symfony/http-foundation | >=7.0.0,<7.1.7 | 7.1.7 |
References
- https://github.com/symfony/symfony/security/advisories/GHSA-mrqx-rp3w-jpjp
- https://nvd.nist.gov/vuln/detail/CVE-2024-50345
- 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://github.com/symfony/symfony
- https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html
- https://symfony.com/cve-2024-50345
- https://url.spec.whatwg.org
- https://security-tracker.debian.org/tracker/CVE-2024-50345
Verify integrity in audit chain (admin only). AS-IS.