5.3medium
Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652
- Severity
- 5.3medium CVSS:4.0 by Symfony
- Exploit likelihood
- 1.03% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Symfony
Description
The fix for CVE-2017-16652 restricts the redirects of HttpUtils::createRedirectResponse() to the host of the request. When framework.session.cookie_domain is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first "/". But browsers also end the host at "\", "?" and "#". So with the cookie domain .example.com, a target like https://evil.test?.example.com passed the check, and the browser went to evil.test. Applications are exposed when framework.session.cookie_domain is set. The default success and failure handlers of form_login redirect to the _target_path or _failure_path of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again. HttpUtils now ends the host of a target where browsers do, before checking it against the allowed domains.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| symfony/security-http | before 5.4.57, from 6.0.0 before 6.4.51, from 7.0.0 before 7.4.24, from 8.0.0 before 8.1.12 | CVE List |
| symfony/symfony | before 5.4.57, from 6.0.0 before 6.4.51, from 7.0.0 before 7.4.24, from 8.0.0 before 8.1.12 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-134790 changed 2026-11-25 | CVE Terms of Use |
| NVD | CVE-2026-134790 changed 2026-11-30 | Public domain |