# phpCAS vulnerable to Service Hostname Discovery Exploitation

Advisory record · `GHSA-8q72-6qq8-xv64`

- **Identifiers:** `GHSA-8q72-6qq8-xv64` · `CVE-2022-39369` · `PKSA-4b9f-kpvb-8rtq`
- **State:** Confirmed
- **Severity:** CVSS 8.0 High
- **Critical:** No
- **Weakness (CWE):** [CWE-99](https://cwe.mitre.org/data/definitions/99.html) · [CWE-1287](https://cwe.mitre.org/data/definitions/1287.html)
- **Tags:** [CWE-99](https://agentprime.io/advisories/tag/cwe-99.md) · [CWE-1287](https://agentprime.io/advisories/tag/cwe-1287.md)
- **Published:** 1 Nov 2022
- **Updated:** 20 Feb 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 1 Nov 2022, 18:11 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `apereo/phpcas` (Packagist): affected `<1.6.0`; fixed in `1.6.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Packagist apereo/phpcas versions before 1.6.0 use HTTP headers such as Host to determine the service URL used to validate CAS tickets. An attacker who controls these headers and holds a valid ticket for another authorized service on the same CAS server can authenticate to a phpCAS-protected service as a victim who is logged in, if the victim visits the attacker's site. Upgrade to apereo/phpcas 1.6.0 or later, which requires an explicit service base URL. Setting the full current page URL with setUrl() or sanitizing the affected headers at a reverse proxy also avoids the issue.

Written 4 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.0 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.024, the 84th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:30 UTC: First seen by agentprime
- 31 Oct 2026, 14:30 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-8q72-6qq8-xv64)

## Sources

- [GitHub Advisory Database: GHSA-8q72-6qq8-xv64](https://github.com/advisories/GHSA-8q72-6qq8-xv64)
- [OSV: GHSA-8q72-6qq8-xv64](https://osv.dev/vulnerability/GHSA-8q72-6qq8-xv64)
- <https://github.com/apereo/phpCAS/security/advisories/GHSA-8q72-6qq8-xv64>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39369>
- <https://github.com/apereo/phpCAS/commit/b759361d904a2cb2a3bcee9411fc348cfde5d163>
- <https://github.com/apereo/phpCAS>
- <https://github.com/apereo/phpCAS/releases/tag/1.6.0>
- <https://lists.debian.org/debian-lts-announce/2023/07/msg00007.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2XL7SMW6ESSP2Y6HHRYWW2MMCZSI4LBZ>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RUA2JM6YT3ZXSZLBJVRA32AXYM3GJMO3>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VJZGTWJ5ZXUUT47EHARNOUUNTH6SYDSE>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-8q72-6qq8-xv64>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-8q72-6qq8-xv64/>. Everything for agents: <https://agentprime.io/llms.txt>.
