CVE-2026-45074: Symfony: Cas2Handler Derives CAS service URL from Client Host Header → Cross-Service Ticket Replay

Published May 27, 2026
·
Updated

Cas2Handler builds this service parameter from Request::getSchemeAndHttpHost(), which reflects the attacker-controlled HTTP Host header whenever Symfony's framework.trustedhosts setting is not configured (the default). An attacker who controls any other application registered with the same CAS server can replay a victim's ticket against the Symfony application, with a spoofed Host header, and be authenticated as that victim.

Resolution

A new required serviceurl configuration option is introduced on Cas2Handler. The CAS service parameter sent to the validation endpoint is now built from this configured URL instead of being derived from the request's Host header, preventing cross-service ticket replay via Host header spoofing.

The patch for this issue is available here for branch 7.4.

Credits

Symfony would like to thank Claude Mythos Preview (via Project Glasswing) 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. From 7.1.0 until 7.4.12 and 8.0.12, Cas2Handler builds the CAS service parameter from Request::getSchemeAndHttpHost(), which reflects an attacker-controlled Host header when framework.trustedhosts is not configured; an attacker controlling another application registered with the same CAS server can replay a victim ticket against the Symfony application and authenticate as the victim. This issue is fixed in versions 7.4.12 and 8.0.12.

MITRE

Affected Software

6 affected componentsFixes available
composer/symfony/symfony>=8.0.0<8.0.12
8.0.12
composer/symfony/symfony>=7.1.0<7.4.12
7.4.12
composer/symfony/security-http>=8.0.0<8.0.12
8.0.12
composer/symfony/security-http>=7.1.0<7.4.12
7.4.12
SensioLabs Symfony>=7.1.0<7.4.12
SensioLabs Symfony>=8.0.0<8.0.12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 8.0.12
  2. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 7.4.12
  3. Upgrade

    Upgrade composer/symfony/security-http to a version that resolves this vulnerability.

    Fixed in 8.0.12
  4. Upgrade

    Upgrade composer/symfony/security-http to a version that resolves this vulnerability.

    Fixed in 7.4.12
  5. Upgrade

    Upgrade Symfony Cas2Handler to a version that resolves this vulnerability.

    Fixed in 7.4.12
  6. Upgrade

    Upgrade Symfony Cas2Handler to a version that resolves this vulnerability.

    Fixed in 8.0.12
  7. Configuration

    Set the new required Cas2Handler configuration option `service_url` so the CAS `service` parameter is built from this configured URL instead of being derived from the request `Host` header.

    Symfony (Cas2Handler) service_url = required (configured URL)

Event History

May 27, 2026
Advisory Published
via GitHub·09:11 PM
Data Sourced
via GitHub·09:11 PM
DescriptionWeaknessAffected Software
Jul 14, 2026
CVE Published
via MITRE·05:49 PM
Data Sourced
via MITRE·05:49 PM
DescriptionWeakness
Data Sourced
via NVD·06:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-45074?

The severity of CVE-2026-45074 is rated at 65.

2

How do I fix CVE-2026-45074?

To fix CVE-2026-45074, configure the 'framework.trusted_hosts' setting in your Symfony application.

3

Which versions of Symfony are affected by CVE-2026-45074?

CVE-2026-45074 affects versions of Symfony that do not have the 'framework.trusted_hosts' setting configured.

4

What kind of attack can CVE-2026-45074 facilitate?

CVE-2026-45074 can facilitate header injection attacks due to the reflection of the attacker-controlled HTTP 'Host' header.

5

Is CVE-2026-45074 relevant for all Symfony applications?

CVE-2026-45074 is particularly relevant for Symfony applications that have not configured the 'framework.trusted_hosts' setting.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203