{"answers":{"affected":"12 open source packages ship an affected version, including ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may, ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 and ca.uhn.hapi.fhir:org.hl7.fhir.r4.","exploited":"There is no known exploitation of CVE-2024-52007 in the wild and no public exploit code.","fix":"Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may to 6.4.0 or later.","what":"CVE-2024-52007 is a high-severity vulnerability in hapifhir org.hl7.fhir.core, published on 8 Nov 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-52007 and fix it if it is affected.\n\nWhat it is: CVE-2024-52007 is a high-severity vulnerability in hapifhir org.hl7.fhir.core, published on 8 Nov 2024. 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-2024-52007 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.r4 (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.r4 (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.r4b (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.r4b (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.utilities (Maven): affected all versions; fixed in 6.4.0\n- ca.uhn.hapi.fhir:org.hl7.fhir.utilities (Maven): affected all versions; fixed in 6.4.0\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-52007/ (Markdown: https://insights.sbomify.com/CVE-2024-52007/index.md)","id":"CVE-2024-52007","markdown":"https://insights.sbomify.com/CVE-2024-52007/index.md","name":"CVE-2024-52007","record":{"aliases":["GHSA-gr3c-q7xf-47vh","ROOT-APP-MAVEN-CVE-2024-52007"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Java FHIR library","requires_auth":"none","summary":"An attacker can read sensitive host system files by submitting malicious XML with external entities to applications using the HAPI FHIR library.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"HAPI FHIR is a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java. XSLT parsing performed by various components are vulnerable to XML external entity injections. A processed XML file with a malicious DTD tag ( \u003c!DOCTYPE foo [\u003c!ENTITY example SYSTEM \"/etc/passwd\"\u003e ]\u003e could produce XML containing data from the host system. This impacts use cases where org.hl7.fhir.core is being used to within a host where external clients can submit XML. This is related to GHSA-6cr6-ph3p-f5rf, in which its fix (#1571 \u0026 #1717) was incomplete. This issue has been addressed in release version 6.4.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`","id":"CVE-2024-52007","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2024"},"n_packages":12,"n_references":6,"next":{"headline":"Password Policy Bypass Vulnerability in Fides Webserver","id":"CVE-2024-52008"},"packages":[{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may","purl":null,"source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.dstu2016may","source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.dstu3","purl":null,"source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.dstu3","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.dstu3","source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.r4","purl":null,"source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.r4","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.r4","source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.r4b","purl":null,"source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.r4b","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.r4b","source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.r5","purl":null,"source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.r5","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.r5","source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.utilities","purl":null,"source":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"ca.uhn.hapi.fhir:org.hl7.fhir.utilities","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.utilities","source":"GHSA-gr3c-q7xf-47vh"}],"prev":{"headline":"Newline confusion in credential helpers can lead to credential exfiltration in git","id":"CVE-2024-52006"},"products":["org.hl7.fhir.core"],"published":"2024-11-08","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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-12","vendors":["hapifhir"]},"summary":"An attacker can read sensitive host system files by submitting malicious XML with external entities to applications using the HAPI FHIR library.","url":"https://insights.sbomify.com/CVE-2024-52007/"}