CVE-2024-50345
Symfony vulnerable to open redirect via browser-sanitized URLs
Auswirkung
### 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](https://github.com/symfony/symfony/commit/5a9b08e5740af795854b1b639b7d45b9cbfe8819) 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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: geringes Risiko, dass Daten ausgelesen werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| composer | symfony/http-foundation | < 5.4.46 | 5.4.46 |
Betroffene Produkte · Sensiolabs
| Produkt | Betroffene Versionen |
|---|---|
| Symfony | vor 5.4.46 ab 6.0.0 vor 6.4.14 ab 7.0.0 vor 7.1.7 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/symfony/symfony/security/advisories/GHSA-mrqx-rp3w-jpjp
- https://url.spec.whatwg.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html
- https://github.com/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