{"schemaVersion":3,"id":"CVE-2018-8039","aliases":["GHSA-jc7r-v6fg-2gpf"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2018-07-02T13:00:00.000Z","modified":"2024-09-17T04:04:46.184Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Maven","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.08507,"percentile":0.94987,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.08507},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.09829,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.07649,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.08507,"percentile":0.94987}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.07649,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.08507,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.08507,"percentile":0.94987}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions","description":"The product does not handle or incorrectly handles an exceptional condition.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/755.html"}],"affected":[{"vendor":"apache software foundation","product":"apache cxf","name":"Apache CXF","label":"apache cxf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"prior to 3.1.16","noFixRecorded":false,"fixedIn":null},{"text":"3.2.x prior to 3.2.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"prior to 3.1.16 | 3.2.x prior to 3.2.5","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_cxf"},{"vendor":"apache","product":"cxf","name":"cxf","label":"cxf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.2.0, < 3.2.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.16 | ≥ 3.2.0, < 3.2.5","eol":null,"hubHref":"/vendor/apache/cxf"},{"vendor":"org.apache.cxf","product":"apache-cxf","name":"org.apache.cxf:apache-cxf","label":"apache-cxf","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.cxf/apache-cxf","purlType":"maven","versions":[{"text":"≥ 3.2.0, < 3.2.5","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.16","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.2.0, < 3.2.5 | < 3.1.16","eol":null,"hubHref":null},{"vendor":"org.apache.cxf","product":"cxf-rt-transports-http","name":"org.apache.cxf:cxf-rt-transports-http","label":"cxf-rt-transports-http","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.cxf/cxf-rt-transports-http","purlType":"maven","versions":[{"text":"≥ 3.2.0, < 3.2.5","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.16","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.2.0, < 3.2.5 | < 3.1.16","eol":null,"hubHref":null},{"vendor":"redhat","product":"jboss_enterprise_application_platform","name":"jboss enterprise application platform","label":"jboss_enterprise_application_platform","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.1.0","eol":null,"hubHref":"/vendor/redhat/jboss_enterprise_application_platform"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/apache/cxf/commit/fae6fabf9bd7647f5e9cb68897a7d72b545b741b","label":"github.com/apache/cxf/commit/fae6fabf9bd7647f5e9cb68897a7d72b545b741b","hostname":"github.com","tags":["X Refsource CONFIRM","Patch","Third Party Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2428","label":"access.redhat.com/errata/RHSA-2018:2428","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3817","label":"access.redhat.com/errata/RHSA-2018:3817","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2643","label":"access.redhat.com/errata/RHSA-2018:2643","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","WEB"]},{"url":"https://lists.apache.org/thread.html/1f8ff31df204ad0374ab26ad333169e0387a5e7ec92422f337431866%40%3Cdev.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"http://www.securityfocus.com/bid/106357","label":"www.securityfocus.com/bid/106357","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2279","label":"access.redhat.com/errata/RHSA-2018:2279","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2424","label":"access.redhat.com/errata/RHSA-2018:2424","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2276","label":"access.redhat.com/errata/RHSA-2018:2276","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2423","label":"access.redhat.com/errata/RHSA-2018:2423","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2425","label":"access.redhat.com/errata/RHSA-2018:2425","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2277","label":"access.redhat.com/errata/RHSA-2018:2277","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","WEB"]},{"url":"http://cxf.apache.org/security-advisories.data/CVE-2018-8039.txt.asc?version=1&modificationDate=1530184663000&api=v2","label":"cxf.apache.org/security-advisories.data/…","hostname":"cxf.apache.org","tags":["X Refsource CONFIRM","Mailing List","Vendor Advisory"]},{"url":"http://www.securitytracker.com/id/1041199","label":"www.securitytracker.com/id/1041199","hostname":"www.securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK","Third Party Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3768","label":"access.redhat.com/errata/RHSA-2018:3768","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html","label":"www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB"]},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","label":"www.oracle.com/security-alerts/cpujan2020.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB"]},{"url":"https://lists.apache.org/thread.html/rc774278135816e7afc943dc9fc78eb0764f2c84a2b96470a0187315c%40%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r36e44ffc1a9b365327df62cdfaabe85b9a5637de102cea07d79b2dbf%40%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/rff42cfa5e7d75b7c1af0e37589140a8f1999e578a75738740b244bd4%40%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2020.html","label":"www.oracle.com/security-alerts/cpuapr2020.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB"]},{"url":"https://lists.apache.org/thread.html/rd49aabd984ed540c8ff7916d4d79405f3fa311d2fdbcf9ed307839a6%40%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/rec7160382badd3ef4ad017a22f64a266c7188b9ba71394f0d321e2d4%40%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e%40%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-8039","label":"nvd.nist.gov/vuln/detail/CVE-2018-8039","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/cxf/commit/8ed6208f987ff72e4c4d2cf8a6b1ec9b27575d4","label":"github.com/apache/cxf/commit/8ed6208f987ff72e4c4d2cf8a6b1ec9b27575d4","hostname":"github.com","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/rff42cfa5e7d75b7c1af0e37589140a8f1999e578a75738740b244bd4@%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/rfb87e0bf3995e7d560afeed750fac9329ff5f1ad49da365129b7f89e@%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/rec7160382badd3ef4ad017a22f64a266c7188b9ba71394f0d321e2d4@%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/rd49aabd984ed540c8ff7916d4d79405f3fa311d2fdbcf9ed307839a6@%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/rc774278135816e7afc943dc9fc78eb0764f2c84a2b96470a0187315c@%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/r36e44ffc1a9b365327df62cdfaabe85b9a5637de102cea07d79b2dbf@%3Ccommits.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/1f8ff31df204ad0374ab26ad333169e0387a5e7ec92422f337431866@%3Cdev.cxf.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://github.com/apache/cxf","label":"github.com/apache/cxf","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-jc7r-v6fg-2gpf","label":"github.com/advisories/GHSA-jc7r-v6fg-2gpf","hostname":"github.com","tags":["Advisory"]},{"url":"https://cxf.apache.org/security-advisories.data/CVE-2018-8039.txt.asc","label":"cxf.apache.org/security-advisories.data/CVE-2018-8039.txt.asc","hostname":"cxf.apache.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["RHSA-2018:2276","RHSA-2018:2423","RHSA-2018:2424","RHSA-2018:2643"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-07-02T13:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-17T04:04:46.184Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T00:48:40.864Z","stale":false,"partial":false}}