Home / apereo / phpCAS / CVE-2022-39369
CVE-2022-39369: is it exploited, and which versions of apereo phpCAS are affected and fixed?
CVE-2022-39369 is an improper Control of Resource Identifiers vulnerability in apereo phpCAS. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: apereo/phpcas before 1.6.0 (GitHub advisory GHSA-8q72-6qq8-xv64). Fixed in 1.6.0 (GitHub advisory GHSA-8q72-6qq8-xv64). Severity: High (8.0, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:44 UTC.
What is CVE-2022-39369?
Service Hostname Discovery Exploitation in phpCAS
phpCAS is an authentication library that allows PHP applications to easily authenticate users via a Central Authentication Service (CAS) server. The phpCAS library uses HTTP headers to determine the service URL used to validate tickets. This allows an attacker to control the host header and use a valid ticket granted for any authorized service in the same SSO realm (CAS server) to authenticate to the service protected by phpCAS. Depending on the settings of the CAS server service registry in worst case this may be any other service URL (if the allowed URLs are configured to "^(https)://.*") or may be strictly limited to known and authorized services in the same SSO federation if proper URL service validation is applied. This vulnerability may allow an attacker to gain access to a victim's account on a vulnerable CASified service without victim's knowledge, when the victim visits attacker's website while being logged in to the same CAS server. phpCAS 1.6.0 is a major version upgrade that starts enforcing service URL discovery validation, because there is unfortunately no 100% safe default config to use in PHP. Starting this version, it is required to pass in an additional service base URL argument when constructing the client class. For more information, please refer to the upgrading doc. This vulnerability only impacts the CAS client that the phpCAS library protects against. The problematic service URL discovery behavior in phpCAS < 1.6.0 will only be disabled, and thus you are not impacted from it, if the phpCAS configuration has the following setup: 1. `phpCAS::setUrl()` is called (a reminder that you have to pass in the full URL of the current page, rather than your service base URL), and 2. `phpCAS::setCallbackURL()` is called, only when the proxy mode is enabled. 3. If your PHP's HTTP header input `X-Forwarded-Host`, `X-Forwarded-Server`, `Host`, `X-Forwarded-Proto`, `X-Forwarded-Protocol` is sanitized before reaching PHP (by a reverse proxy, for example), you will not be impacted by this vulnerability either. If your CAS server service registry is configured to only allow known and trusted service URLs the severity of the vulnerability is reduced substantially in its severity since an attacker must be in control of another authorized service. Otherwise, you should upgrade the library to get the safe service discovery behavior.
From the CVE record by GitHub_M, last updated April 23, 2025, 16:41 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| apereo | phpCAS | < 1.6.0 |
As the CVE record by GitHub_M states it, last updated April 23, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | apereo/phpcas | < 1.6.0 | 1.6.0 | GHSA-8q72-6qq8-xv64 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 1, 2022. Summary: phpCAS vulnerable to Service Hostname Discovery Exploitation.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apereo | phpcas | before 1.6.0 | application |
| fedoraproject | fedora | 35 | operating system |
| fedoraproject | fedora | 36 | operating system |
| fedoraproject | fedora | 37 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:58 UTC.
How severe is CVE-2022-39369?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H | GitHub_M |
| High 8.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-39369 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, April 23, 2025)
- EPSS
- 2.45% probability of exploitation activity in the next 30 days, percentile 84.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-99 Improper Control of Resource Identifiers
- CWE-1287 Improper Validation of Specified Type of Input
Where are the vendor advisories and references?
- https://github.com/apereo/phpCAS/security/advisories/GHSA-8q72-6qq8-xv64
- FEDORA-2022-37c2d26f59 vendor-advisory
- FEDORA-2022-d6c6782130 vendor-advisory
- FEDORA-2022-76b3530ac2 vendor-advisory
- [debian-lts-announce] 20230708 [SECURITY] [DLA 3485-1] php-cas security update mailing-list
When was it published, and where is the official record?
- Reserved
- September 2, 2022
- Published
- November 1, 2022, 00:00 UTC
- CVE record updated
- April 23, 2025, 16:41 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:58 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:44 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect phpCAS?
- Jan 24, 2020CVE-2014-4172 Apereo .net Cas Client: injection
- Jul 13, 2017CVE-2017-1000071 Apereo Phpcas: authentication bypass (improper authentication)
- Jun 6, 2014CVE-2012-5583 Apereo Phpcas: n/a
- Oct 7, 2010CVE-2010-3692 Apereo Phpcas: path traversal (reading or writing files outside the intended folder)
- Oct 7, 2010CVE-2010-3691 Apereo Phpcas: link following (a symlink lets an attacker reach other files)
- Oct 7, 2010CVE-2010-3690 Apereo Phpcas: cross-site scripting (XSS)
Questions about CVE-2022-39369
Is CVE-2022-39369 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 2.45% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of apereo phpCAS are affected by CVE-2022-39369?
apereo/phpcas before 1.6.0, per the GitHub advisory GHSA-8q72-6qq8-xv64. The tables above give every range the sources list.
Which version fixes CVE-2022-39369?
1.6.0, per the GitHub advisory GHSA-8q72-6qq8-xv64. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-39369?
High (8.0, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-39369?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.