CVE-2026-45074
JSON

7.6high

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

Severity
7.6high CVSS:4.0 by GitHub_M
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-j8gj-9rm5-4xhx

Description

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.trusted_hosts 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.

Affected

Product or packageVersionsReported by
symfony symfony>= 7.1.0-BETA1, < 7.4.12, >= 8.0.0-BETA1, < 8.0.12CVE List
symfony security-http>= 7.1.0-BETA1, < 7.4.12, >= 8.0.0-BETA1, < 8.0.12CVE List
symfony/security-http (Packagist)from 7.1.0 before 7.4.12, from 8.0.0 before 8.0.12GitHub Advisory Database
symfony/symfony (Packagist)from 7.1.0 before 7.4.12, from 8.0.0 before 8.0.12GitHub Advisory Database
sensiolabs symfonyfrom 7.1.0 before 7.4.12, from 8.0.0 before 8.0.12NVD

All scores

GitHub_M7.6high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Classification

CWE-290

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.trusted_hosts 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.

GitHub Advisory Database

Cas2Handler builds this service parameter from Request::getSchemeAndHttpHost(), which reflects the attacker-controlled HTTP Host header whenever Symfony's framework.trusted_hosts 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 service_url 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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-45074 changed 2026-07-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-j8gj-9rm5-4xhx changed 2026-09-10CC-BY-4.0
NVDCVE-2026-45074 changed 2026-07-15Public domain