# XXE vulnerability in XSLT parsing in \`org.hl7.fhir.core\`

Advisory record · `GHSA-gr3c-q7xf-47vh`

- **Identifiers:** `GHSA-gr3c-q7xf-47vh` · `CVE-2024-52007`
- **State:** Confirmed
- **Severity:** CVSS 8.6 High
- **Critical:** No
- **Weakness (CWE):** [CWE-611](https://cwe.mitre.org/data/definitions/611.html)
- **Tags:** [XML external entities (XXE)](https://agentprime.io/advisories/tag/xxe.md)
- **Published:** 8 Nov 2024
- **Updated:** 4 Feb 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 8 Nov 2024, 18:49 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `ca.uhn.hapi.fhir:org.hl7.fhir.dstu3` (Maven): affected `<6.4.0`; fixed in `6.4.0`
- `ca.uhn.hapi.fhir:org.hl7.fhir.r4` (Maven): affected `<6.4.0`; fixed in `6.4.0`
- `ca.uhn.hapi.fhir:org.hl7.fhir.r4b` (Maven): affected `<6.4.0`; fixed in `6.4.0`
- `ca.uhn.hapi.fhir:org.hl7.fhir.r5` (Maven): affected `<6.4.0`; fixed in `6.4.0`
- `ca.uhn.hapi.fhir:org.hl7.fhir.utilities` (Maven): affected `<6.4.0`; fixed in `6.4.0`
- `ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may` (Maven): affected `<6.4.0`; fixed in `6.4.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Six Maven packages in the org.hl7.fhir.core family are affected before version 6.4.0: org.hl7.fhir.dstu3, org.hl7.fhir.r4, org.hl7.fhir.r4b, org.hl7.fhir.r5, org.hl7.fhir.utilities, and org.hl7.fhir.dstu2016may. XSLT parsing in these components is vulnerable to XML external entity injection, where a crafted XML file with a malicious DTD can expose data from the host system. An attacker who can submit XML to a host using these libraries could read local files. Upgrade to version 6.4.0 or later. The source gives few details on specific attack conditions.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.6 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0090, the 59th percentile, on 10 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:21 UTC: First seen by agentprime
- 31 Oct 2026, 14:21 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-gr3c-q7xf-47vh)

## Sources

- [GitHub Advisory Database: GHSA-gr3c-q7xf-47vh](https://github.com/advisories/GHSA-gr3c-q7xf-47vh)
- [OSV: GHSA-gr3c-q7xf-47vh](https://osv.dev/vulnerability/GHSA-gr3c-q7xf-47vh)
- <https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rf>
- <https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-gr3c-q7xf-47vh>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52007>
- <https://github.com/hapifhir/org.hl7.fhir.core/issues/1571>
- <https://github.com/hapifhir/org.hl7.fhir.core/pull/1717>
- <https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxp-documentbuilderfactory-saxparserfactory-and-dom4j>
- <https://cwe.mitre.org/data/definitions/611.html>
- <https://github.com/hapifhir/org.hl7.fhir.core>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-gr3c-q7xf-47vh>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-gr3c-q7xf-47vh/>. Everything for agents: <https://agentprime.io/llms.txt>.
