cve.bz

CVE-2022-39369 Resource Injection

8.0 highEPSS 2.5%Fix available

High (8.0). EPSS 2.5% estimated probability of exploitation activity in the next 30 days. Fixed in apereo/phpcas 1.6.0.

On this page
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.

Severity

CVSS 3.1

8.0 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
2.5% (unchanged from 2.4% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-99 Improper Control of Resource Identifiers (Resource Injection)
CWE-1287 Improper Validation of Specified Type of Input
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-39369 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-39369?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-39369?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-39369 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apereo:phpcasbefore 1.6.0
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8q72-6qq8-xv64Packagistapereo/phpcas<1.6.01.6.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10php-cas1.3.6-1+deb10u1DLA-3485-1
Debian12, 13, 14php-cas1.6.0-1DEBIAN-CVE-2022-39369
Ubuntu16.04:LTSocsinventory-serverno fix listedUBUNTU-CVE-2022-39369
Ubuntu18.04:LTSphp-casno fix listedUBUNTU-CVE-2022-39369
Ubuntu20.04:LTSphp-cas1.3.8-1ubuntu0.20.04.1UBUNTU-CVE-2022-39369 USN-6913-1
Ubuntu22.04:LTSocsinventory-server2.8.1+dfsg1-1ubuntu0.1UBUNTU-CVE-2022-39369 USN-6914-1
Ubuntu22.04:LTSphp-cas1.3.8-1ubuntu0.22.04.1UBUNTU-CVE-2022-39369 USN-6913-1
UbuntuPro:16.04:LTSphp-cas1.3.3-2ubuntu1+esm1UBUNTU-CVE-2022-39369 USN-6913-2
UbuntuPro:16.04:LTS, Pro:18.04:LTSmoodleno fix listedUBUNTU-CVE-2022-39369

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-10 Buffer Overflow via Environment Variables Likelihood: High · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-240 Resource Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON