CVE-2026-45074

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

Published Jul 14, 2026 CVSS 4.0 · 7.6 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

From Symfony 7.1.0 up to but not including 7.4.12 and prior to 8.0.12, the Cas2Handler component constructs the CAS service URL by invoking Request::getSchemeAndHttpHost(). This value incorporates the Host header, which an attacker can manipulate when the framework.trusted_hosts setting is not configured. If a separate application registered with the same CAS server accepts tickets, the attacker can send a request with a forged Host header pointing to that application and replay a victim’s CAS ticket against the Symfony application. A successful replay authenticates the attacker using the victim’s credentials, enabling Cross‑Service Ticket Replay. The flaw maps to CWE‑290, reflecting improper authentication. The vulnerability is remedied in Symfony 7.4.12 and 8.0.12.

Affected Systems

The vulnerability affects Symfony components security-http and symfony in releases from 7.1.0 up to but not including 7.4.12 and from 8.0.0 up to but not including 8.0.12. These vulnerable versions are susceptible because Cas2Handler does not validate the Host header against trusted values.

Risk and Exploitability

With a CVSS score of 7.6 the issue is classified as high severity, while the EPSS score of less than 1% indicates a low probability of exploitation currently. The flaw is not listed in CISA’s KEV catalog. An attacker can exploit it by crafting HTTP requests that set a Host header pointing to another application registered with the same CAS server, thereby replaying a victim ticket. The vulnerability is remote and does not require local code execution, but it does require header manipulation and a valid CAS ticket for the target application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Symfony to the patched versions 7.4.12, 8.0.12, or later as supplied by the vendor, which removes the insecure construction of the service URL.
  • Configure the framework.trusted_hosts setting to include only the legitimate hostnames or patterns for your application, which forces the CAS handler to reject any host header that is not explicitly trusted.
  • If upgrading or setting trusted hosts is not immediately possible, reconfigure your web server or reverse proxy to reject or strip untrusted Host headers before they reach the application.

Generated by OpenCVE AI on July 31, 2026 at 05:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-j8gj-9rm5-4xhx Symfony's Cas2Handler Derives CAS service URL from Client Host Header → Cross-Service Ticket Replay
History
Type Values Removed Values Added
First Time appeared Symfony
Symfony security-http
Symfony symfony
Vendors & Products Symfony
Symfony security-http
Symfony symfony
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Symfony: Cas2Handler Derives CAS service URL from Client Host Header → Cross-Service Ticket Replay
Weaknesses CWE-290
References
Metrics cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-290

    Authentication Bypass by Spoofing

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 14, 2026, 6:24 PM
Reserved
May 8, 2026, 6:45 PM
Status
Analyzed
Published
Jul 14, 2026, 6:17 PM
Modified
Jul 15, 2026, 3:35 PM