CVE-2026-48489: Symfony: Security Firewall Bypass via failure_forward Subrequest: Unauthenticated Access to access_control-Protected GET Routes
Description
When a firewall is configured with form-login (or any authenticator using DefaultAuthenticationFailureHandler) and the failureforward: true option, the handler reads the failurepath parameter from the failing login request and uses it as the path of an internal subrequest dispatched through HttpKernelInterface::SUBREQUEST.
Symfony's Firewall::onKernelRequest listener intentionally skips subrequests under the assumption they are internally generated and trusted, which also means AccessListener (the listener that evaluates accesscontrol) does not run. Because the attacker controls the target of the subrequest, an unauthenticated POST to the check path with failurepath=/admin/whatever performs a local request forgery that executes the target controller outside the firewall perimeter and returns its response to the caller.
Applications that follow Symfony's recommended best practice of protecting administrative areas with broad accesscontrol rules (e.g. ^/admin requires ROLEADMIN) and expose read-only GET endpoints under that area (data exports, internal APIs, account views) are fully exposed: any such GET route can be read by an unauthenticated attacker without any developer misconfiguration, debug mode, or state-changing GET handler being required.
Resolution
DefaultAuthenticationFailureHandler no longer honors the request-supplied failurepath parameter when failureforward is enabled. The subrequest is always dispatched to the configured failurepath option (defaulting to loginpath), which is set by the application owner and not by the request. The redirect branch (failureforward: false) is unchanged because redirects re-enter the firewall on the next request and are not subject to this bypass.
The patch for this issue is available here for branch 5.4.
Credits
Symfony would like to thank Nguyen Ngoc Toan Thang (@a-tt-om) and Tran Quoc Tri Trung (@teebow1e) for reporting the issue, and Nicolas Grekas for providing the fix.
Other sources
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.53, 6.4.41, 7.4.13, and 8.0.13, DefaultAuthenticationFailureHandler honored the request-supplied failurepath parameter when failureforward: true was enabled, allowing an unauthenticated failing login request to dispatch a subrequest to accesscontrol-protected GET routes that skipped firewall listeners. This issue is fixed in versions 5.4.53, 6.4.41, 7.4.13, and 8.0.13.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 8.0.13 - Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 7.4.13 - Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 6.4.41 - Upgrade
Upgrade
composer/symfony/security-httpto a version that resolves this vulnerability.Fixed in 8.0.13 - Upgrade
Upgrade
composer/symfony/security-httpto a version that resolves this vulnerability.Fixed in 7.4.13 - Upgrade
Upgrade
composer/symfony/security-httpto a version that resolves this vulnerability.Fixed in 6.4.41 - Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 5.4.53 - Upgrade
Upgrade
composer/symfony/security-httpto a version that resolves this vulnerability.Fixed in 5.4.53 - Upgrade
Upgrade
Symfonyto a version that resolves this vulnerability.Fixed in 5.4.53 - Upgrade
Upgrade
Symfonyto a version that resolves this vulnerability.Fixed in 6.4.41 - Upgrade
Upgrade
Symfonyto a version that resolves this vulnerability.Fixed in 7.4.13 - Upgrade
Upgrade
Symfonyto a version that resolves this vulnerability.Fixed in 8.0.13
Event History
Frequently Asked Questions
What is the severity of CVE-2026-48489?
The severity of CVE-2026-48489 is rated at 71.
How do I fix CVE-2026-48489?
To fix CVE-2026-48489, update to the latest version of Symfony that addresses this vulnerability.
What systems are affected by CVE-2026-48489?
CVE-2026-48489 affects Symfony applications using the `form-login` feature with `DefaultAuthenticationFailureHandler` configured.
What kind of attack can exploit CVE-2026-48489?
CVE-2026-48489 can potentially be exploited to redirect users to arbitrary paths through manipulated login requests.
Is CVE-2026-48489 publicly known?
Yes, CVE-2026-48489 was publicly disclosed on June 15, 2026.