# Apache CXF TLS hostname verification does not work correctly with com.sun.net.ssl.\*

Advisory record · `GHSA-jc7r-v6fg-2gpf`

- **Identifiers:** `GHSA-jc7r-v6fg-2gpf` · `CVE-2018-8039`
- **State:** Confirmed
- **Severity:** CVSS 8.1 High
- **Critical:** No
- **Weakness (CWE):** [CWE-755](https://cwe.mitre.org/data/definitions/755.html)
- **Tags:** [CWE-755](https://agentprime.io/advisories/tag/cwe-755.md)
- **Published:** 19 Oct 2018
- **Updated:** 29 May 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 19 Oct 2018, 16:40 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.apache.cxf:cxf-rt-transports-http` (Maven): affected `>=3.2.0, <3.2.5 || <3.1.16`; fixed in `3.2.5`, `3.1.16`
- `org.apache.cxf:apache-cxf` (Maven): affected `>=3.2.0, <3.2.5 || <3.1.16`; fixed in `3.2.5`, `3.1.16`

## Machine-written summary

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

> Apache CXF (org.apache.cxf:cxf-rt-transports-http and org.apache.cxf:apache-cxf) versions 3.2.0 before 3.2.5 and before 3.1.16 do not properly report TLS hostname verification failures when the com.sun.net.ssl implementation is enabled through the java.protocol.handler.pkgs system property. An attacker in a man-in-the-middle position can then intercept connections from a CXF client without the error being raised. Upgrade to version 3.2.5 or 3.1.16.

Written 7 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.1 High, CVSS 3.0: `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

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

## Timeline

- 31 Oct 2026, 15:11 UTC: First seen by agentprime
- 31 Oct 2026, 15:11 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-jc7r-v6fg-2gpf)

## Sources

- [GitHub Advisory Database: GHSA-jc7r-v6fg-2gpf](https://github.com/advisories/GHSA-jc7r-v6fg-2gpf)
- [OSV: GHSA-jc7r-v6fg-2gpf](https://osv.dev/vulnerability/GHSA-jc7r-v6fg-2gpf)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-8039>
- <https://github.com/apache/cxf/commit/fae6fabf9bd7647f5e9cb68897a7d72b545b741b>
- <https://github.com/apache/cxf/commit/8ed6208f987ff72e4c4d2cf8a6b1ec9b27575d4>
- <https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html>
- <https://www.oracle.com/security-alerts/cpujan2020.html>
- <https://www.oracle.com/security-alerts/cpuapr2020.html>
- <https://lists.apache.org/thread.html/rff42cfa5e7d75b7c1af0e37589140a8f1999e578a75738740b244bd4@%3Ccommits.cxf.apache.org%3E>
- <https://lists.apache.org/thread.html/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e@%3Ccommits.cxf.apache.org%3E>
- <https://lists.apache.org/thread.html/rec7160382badd3ef4ad017a22f64a266c7188b9ba71394f0d321e2d4@%3Ccommits.cxf.apache.org%3E>
- <https://lists.apache.org/thread.html/rd49aabd984ed540c8ff7916d4d79405f3fa311d2fdbcf9ed307839a6@%3Ccommits.cxf.apache.org%3E>
- <https://lists.apache.org/thread.html/rc774278135816e7afc943dc9fc78eb0764f2c84a2b96470a0187315c@%3Ccommits.cxf.apache.org%3E>
- <https://lists.apache.org/thread.html/r36e44ffc1a9b365327df62cdfaabe85b9a5637de102cea07d79b2dbf@%3Ccommits.cxf.apache.org%3E>

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-jc7r-v6fg-2gpf>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-jc7r-v6fg-2gpf/>. Everything for agents: <https://agentprime.io/llms.txt>.
