# CVE-2018-8039: Apache CXF TLS hostname verification does not work correctly with com.sun.net.ssl.*

Source: https://junglewise.ai/threats/cve-2018-8039-apache-cxf-tls-hostname-verification-does-not-work-correctly-with  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2018-10-19  
License: CC BY 4.0 with a link back

CVE-2018-8039 · Severity: low · CVSS 3 · Published 2018-10-19

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

Technologies: [org.apache.cxf:apache-cxf (Maven)](https://junglewise.ai/threats/technologies/org-apache-cxf-apache-cxf), [org.apache.cxf:cxf-rt-transports-http (Maven)](https://junglewise.ai/threats/technologies/org-apache-cxf-cxf-rt-transports-http). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2018-8039 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2018-8039 being exploited in the wild.

**How severe is CVE-2018-8039?** Low severity, with a CVSS score of 3, published 19 October 2018.

**Which products and versions are affected?** org.apache.cxf:apache-cxf (Maven) ECOSYSTEM:introduced=3.2.0,fixed=3.2.5; org.apache.cxf:cxf-rt-transports-http (Maven) ECOSYSTEM:introduced=3.2.0,fixed=3.2.5.

**Is there a fix for CVE-2018-8039?** Yes. org.apache.cxf:apache-cxf (Maven): upgrade to 3.2.5 or later; org.apache.cxf:cxf-rt-transports-http (Maven): upgrade to 3.2.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2018-8039?** Check whether you run org.apache.cxf:apache-cxf (Maven) or org.apache.cxf:cxf-rt-transports-http (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.cxf:apache-cxf (Maven): upgrade to 3.2.5 or later

  ```sh
  # set org.apache.cxf:apache-cxf to 3.2.5 in your pom.xml or build.gradle
  ```

- org.apache.cxf:cxf-rt-transports-http (Maven): upgrade to 3.2.5 or later

  ```sh
  # set org.apache.cxf:cxf-rt-transports-http to 3.2.5 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.cxf:apache-cxf (Maven) ECOSYSTEM:introduced=3.2.0,fixed=3.2.5
- org.apache.cxf:cxf-rt-transports-http (Maven) ECOSYSTEM:introduced=3.2.0,fixed=3.2.5

## Identifiers

- CVE-2018-8039
- GHSA-jc7r-v6fg-2gpf

## Related threats

- [Apache CXF allows unrestricted memory consumption in CXF HTTP clients](https://junglewise.ai/threats/cve-2024-41172-apache-cxf-allows-unrestricted-memory-consumption-in-cxf-http)
- [Inadequate Encryption Strength in Apache CXF](https://junglewise.ai/threats/cve-2012-5575-inadequate-encryption-strength-in-apache-cxf)
- [Infinite loop in Apache CFX](https://junglewise.ai/threats/cve-2021-30468-infinite-loop-in-apache-cfx)
- [Authorization service vulnerable to DDos attacks in Apache CFX](https://junglewise.ai/threats/cve-2021-22696-authorization-service-vulnerable-to-ddos-attacks-in-apache-cfx)
- [Cross-site scripting in Apache CXF](https://junglewise.ai/threats/cve-2020-13954-cross-site-scripting-in-apache-cxf)
