{"answers":{"affected":"2 open source packages ship an affected version, including org.cyclonedx:cyclonedx-core-java.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38374 exists.","fix":"Upgrade org.cyclonedx:cyclonedx-core-java to 9.0.4 or later.","what":"CVE-2024-38374 is a high-severity vulnerability in cyclonedx-core-java, published on 28 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-38374 and fix it if it is affected.\n\nWhat it is: CVE-2024-38374 is a high-severity vulnerability in cyclonedx-core-java, published on 28 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38374 exists.\n\nAffected packages and fixed versions:\n- org.cyclonedx:cyclonedx-core-java (Maven): affected from 2.1.0; fixed in 9.0.4\n- org.cyclonedx:cyclonedx-core-java (Maven): affected from 2.1.0; fixed in 9.0.4\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-2024-38374/ (Markdown: https://insights.sbomify.com/CVE-2024-38374/index.md)","id":"CVE-2024-38374","markdown":"https://insights.sbomify.com/CVE-2024-38374/index.md","name":"CVE-2024-38374","record":{"aliases":["CVE-2024-38515","GHSA-683x-4444-jxh8"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Java SBOM library","requires_auth":"none","summary":"Attackers can exploit insecure XML parsing in CycloneDX Java library to read sensitive files or cause denial of service via XXE injection.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"The CycloneDX core module provides a model representation of the SBOM along with utilities to assist in creating, validating, and parsing SBOMs. Before deserializing CycloneDX Bill of Materials in XML format, _cyclonedx-core-java_ leverages XPath expressions to determine the schema version of the BOM. The `DocumentBuilderFactory` used to evaluate XPath expressions was not configured securely, making the library vulnerable to XML External Entity (XXE) injection. This vulnerability has been fixed in cyclonedx-core-java version 9.0.4.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Improper Restriction of XML External Entity Reference in org.cyclonedx:cyclonedx-core-java","id":"CVE-2024-38374","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"@fastly/js-compute use-after-free in some host call implementations","id":"CVE-2024-38375"},"packages":[{"ecosystem":"Maven","fixed":["9.0.4"],"introduced":["2.1.0"],"last_affected":[],"package":"org.cyclonedx:cyclonedx-core-java","purl":null,"source":"GHSA-683x-4444-jxh8"},{"ecosystem":"Maven","fixed":["9.0.4"],"introduced":["2.1.0"],"last_affected":[],"package":"org.cyclonedx:cyclonedx-core-java","purl":"pkg:maven/org.cyclonedx/cyclonedx-core-java","source":"GHSA-683x-4444-jxh8"}],"prev":{"headline":"FreeRTOS-Plus-TCP Buffer Over-Read in DNS Response Parser","id":"CVE-2024-38373"},"products":["cyclonedx-core-java"],"published":"2024-06-28","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["CycloneDX"]},"summary":"Attackers can exploit insecure XML parsing in CycloneDX Java library to read sensitive files or cause denial of service via XXE injection.","url":"https://insights.sbomify.com/CVE-2024-38374/"}