It is possible to configure Apache CXF to use the com.sun.net.ssl implementation via 'System.setProperty("java.protocol.handler.pkgs", "com.
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 3.2.5, 3.1.16
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 1 proof of concept on GitHub
Summary
It is possible to configure Apache CXF to use the com.sun.net.ssl implementation via 'System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");'. When this system property is set, CXF uses some reflection to try to make the HostnameVerifier work with the old com.sun.net.ssl.HostnameVerifier interface. However, the default HostnameVerifier implementation in CXF does not implement the method in this interface, and an exception is thrown. However, in Apache CXF prior to 3.2.5 and 3.1.16 the exception is caught in the reflection code and not properly propagated. What this means is that if you are using the com.sun.net.ssl stack with CXF, an error with TLS hostname verification will not be thrown, leaving a CXF client subject to man-in-the-middle attacks.
Timeline
- CVE published
- Record last updated
Affected versions
- Apache Software Foundation Apache CXF
prior to 3.1.16, 3.2.x prior to 3.2.5
- org.apache.cxf:cxf-rt-transports-httpMaven
From 3.2.0 · fixed in 3.2.5
- org.apache.cxf:cxf-rt-transports-httpMaven
fixed in 3.1.16
- org.apache.cxf:apache-cxfMaven
From 3.2.0 · fixed in 3.2.5
- org.apache.cxf:apache-cxfMaven
fixed in 3.1.16
References 25
GitHub · apache/cxf
access.redhat.com
lists.apache.org
- thread.html/1f8ff31df204ad0374ab26ad333169e0387a5e7ec92422f337431866@<dev.cxf.apache.org>
- thread.html/rc774278135816e7afc943dc9fc78eb0764f2c84a2b96470a0187315c@<commits.cxf.apache.org>
- thread.html/r36e44ffc1a9b365327df62cdfaabe85b9a5637de102cea07d79b2dbf@<commits.cxf.apache.org>
- thread.html/rff42cfa5e7d75b7c1af0e37589140a8f1999e578a75738740b244bd4@<commits.cxf.apache.org>
- thread.html/rd49aabd984ed540c8ff7916d4d79405f3fa311d2fdbcf9ed307839a6@<commits.cxf.apache.org>
- thread.html/rec7160382badd3ef4ad017a22f64a266c7188b9ba71394f0d321e2d4@<commits.cxf.apache.org>
- thread.html/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e@<commits.cxf.apache.org>