{"answers":{"affected":"8 open source packages ship an affected version, including org.apache.cxf:apache-cxf and org.apache.cxf:cxf-rt-transports-http. It affects 2 products.","exploited":"There is no known exploitation of CVE-2018-8039 in the wild and no public exploit code.","fix":"Upgrade org.apache.cxf:apache-cxf to a fixed version for your release line: 3.1.16 or 3.2.5.","what":"CVE-2018-8039 is a high-severity vulnerability in Apache Cxf, published on 2 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-8039 and fix it if it is affected.\n\nWhat it is: CVE-2018-8039 is a high-severity vulnerability in Apache Cxf, published on 2 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-8039 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.cxf:apache-cxf (Maven): affected all versions; fixed in 3.1.16\n- org.apache.cxf:apache-cxf (Maven): affected all versions; fixed in 3.1.16\n- org.apache.cxf:apache-cxf (Maven): affected from 3.2.0; fixed in 3.2.5\n- org.apache.cxf:apache-cxf (Maven): affected from 3.2.0; fixed in 3.2.5\n- org.apache.cxf:cxf-rt-transports-http (Maven): affected all versions; fixed in 3.1.16\n- org.apache.cxf:cxf-rt-transports-http (Maven): affected all versions; fixed in 3.1.16\n- org.apache.cxf:cxf-rt-transports-http (Maven): affected from 3.2.0; fixed in 3.2.5\n- org.apache.cxf:cxf-rt-transports-http (Maven): affected from 3.2.0; fixed in 3.2.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-8039/ (Markdown: https://insights.sbomify.com/CVE-2018-8039/index.md)","id":"CVE-2018-8039","markdown":"https://insights.sbomify.com/CVE-2018-8039/index.md","name":"CVE-2018-8039","record":{"aliases":["GHSA-jc7r-v6fg-2gpf"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache CXF library","requires_auth":"none","summary":"Improper exception handling in Apache CXF allows bypassing TLS hostname verification when using the legacy com.sun.net.ssl stack, enabling man-in-the-middle attacks.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"cxf","vendor":"apache"},{"product":"jboss_enterprise_application_platform","vendor":"redhat"}],"cvss":{"score":8.1,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2018-11-19","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2018-11-19T12:08:07Z","kind":"github_poc","ref":"https://github.com/tafamace/CVE-2018-8039","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Apache CXF TLS hostname verification does not work correctly with com.sun.net.ssl.*","id":"CVE-2018-8039","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"apache:cxf","products":["apache:cxf","redhat:jboss_enterprise_application_platform"],"type":"security_feature_bypass","year":"2018"},"n_packages":8,"n_references":24,"next":{"headline":"Information disclosure in Apache Traffic Server","id":"CVE-2018-8040"},"packages":[{"ecosystem":"Maven","fixed":["3.1.16"],"introduced":["0"],"last_affected":[],"package":"org.apache.cxf:apache-cxf","purl":null,"source":"GHSA-jc7r-v6fg-2gpf"},{"ecosystem":"Maven","fixed":["3.1.16"],"introduced":["0"],"last_affected":[],"package":"org.apache.cxf:apache-cxf","purl":"pkg:maven/org.apache.cxf/apache-cxf","source":"GHSA-jc7r-v6fg-2gpf"},{"ecosystem":"Maven","fixed":["3.2.5"],"introduced":["3.2.0"],"last_affected":[],"package":"org.apache.cxf:apache-cxf","purl":null,"source":"GHSA-jc7r-v6fg-2gpf"},{"ecosystem":"Maven","fixed":["3.2.5"],"introduced":["3.2.0"],"last_affected":[],"package":"org.apache.cxf:apache-cxf","purl":"pkg:maven/org.apache.cxf/apache-cxf","source":"GHSA-jc7r-v6fg-2gpf"},{"ecosystem":"Maven","fixed":["3.1.16"],"introduced":["0"],"last_affected":[],"package":"org.apache.cxf:cxf-rt-transports-http","purl":null,"source":"GHSA-jc7r-v6fg-2gpf"},{"ecosystem":"Maven","fixed":["3.1.16"],"introduced":["0"],"last_affected":[],"package":"org.apache.cxf:cxf-rt-transports-http","purl":"pkg:maven/org.apache.cxf/cxf-rt-transports-http","source":"GHSA-jc7r-v6fg-2gpf"},{"ecosystem":"Maven","fixed":["3.2.5"],"introduced":["3.2.0"],"last_affected":[],"package":"org.apache.cxf:cxf-rt-transports-http","purl":null,"source":"GHSA-jc7r-v6fg-2gpf"},{"ecosystem":"Maven","fixed":["3.2.5"],"introduced":["3.2.0"],"last_affected":[],"package":"org.apache.cxf:cxf-rt-transports-http","purl":"pkg:maven/org.apache.cxf/cxf-rt-transports-http","source":"GHSA-jc7r-v6fg-2gpf"}],"prev":{"headline":"High severity vulnerability that affects org.apache.cxf.fediz:fediz-jetty8, org.apache.cxf.fediz:fediz-jetty9, org.apache.cxf.fediz:fediz-spring, org.apache.cxf.fediz:fediz-spring2, and org.apache.cxf.fediz:fediz-spring3","id":"CVE-2018-8038"},"products":["Apache CXF"],"published":"2018-07-02","related":[{"cvss_score":10,"headline":"XML Signature/Encryption Not Validated in Apache CXF","id":"CVE-2012-2379","kev_date_added":null,"published":"2013-01-03"},{"cvss_score":9.8,"headline":"Apache CXF: Unsafe deserialization of inbound JMS ObjectMessage","id":"CVE-2026-66909","kev_date_added":null,"published":"2026-08-06"},{"cvss_score":9.8,"headline":"Apache CXF: DefaultEncryptingCodeDataProvider allows unlimited authorization code replay","id":"CVE-2026-68079","kev_date_added":null,"published":"2026-08-06"},{"cvss_score":9.8,"headline":"Apache CXF: OAuth2: Inverted IP Binding Check Defeats Security Control","id":"CVE-2026-50628","kev_date_added":null,"published":"2026-06-12"},{"cvss_score":9.8,"headline":"Apache CXF: Untrusted JMS configuration can lead to RCE","id":"CVE-2025-48913","kev_date_added":null,"published":"2025-08-08"},{"cvss_score":9.8,"headline":"Apache CXF SSRF Vulnerability","id":"CVE-2022-46364","kev_date_added":null,"published":"2022-12-13"},{"cvss_score":9.8,"headline":"Potential session hijack in Apache CXF","id":"CVE-2019-12419","kev_date_added":null,"published":"2019-11-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["Apache Software Foundation"]},"summary":"Improper exception handling in Apache CXF allows bypassing TLS hostname verification when using the legacy com.sun.net.ssl stack, enabling man-in-the-middle attacks.","url":"https://insights.sbomify.com/CVE-2018-8039/"}