CVE-2026-134790

NameCVE-2026-134790
DescriptionThe 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6668-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
symfony (PTS)bookworm, bookworm (security)5.4.53+dfsg-0+deb12u1vulnerable
trixie6.4.50+dfsg-0+deb13u1vulnerable
trixie (security)6.4.51+dfsg-0+deb13u1fixed
forky7.4.23+dfsg-2vulnerable
sid7.4.25+dfsg-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
symfonysourcetrixie6.4.51+dfsg-0+deb13u1DSA-6668-1
symfonysource(unstable)7.4.24+dfsg-1

Notes

https://symfony.com/blog/cve-2026-134790-login-redirects-can-still-reach-another-host-when-the-session-cookie-domain-is-set-incomplete-fix-for-cve-2017-16652
https://github.com/symfony/symfony/security/advisories/GHSA-xf2q-gfhq-mv2q
https://github.com/symfony/symfony/commit/b311687afd165a4f62dcd2dff4632be7eb1db844 (v7.4.24)

Search for package or bug name: Reporting problems