Code executionin FHIR hapi_fhir.
Proof of concept public (GitHub).
An XML External Entity (XXE) vulnerability in HAPI FHIR before v6.4.0 allows attackers to access sensitive information or execute arbitrary code via supplying a crafted request containing malicious XML entities.
- Upgrade hapi_fhir to 6.4.0 or later.
- Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.convertors (Maven) to 6.4.0 or later.
- Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 (Maven) to 6.4.0 or later.
- Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (Maven) to 6.4.0 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 28 Oct 2024CVE ID reserved by mitre.
- 2 Nov 2024First public proof of concept on GitHub.
- 5 Nov 2024Published in the CVE List.
- 6 Nov 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Same weakness: XML external entity
Patchminder. CVE-2024-51132: Code execution in FHIR hapi_fhir. https://patchminder.com/cve/cve-2024-51132/ (accessed 5 December 2026).