# GHSA-59RQ-22FM-X8Q5: XXE vulnerability in XSLT transforms in org.hl7.fhir.publisher

- Database: GitHub
- Severity: CVSS 8.6 (High)
- Published: 2024-09-06
- Modified: 2024-09-06

## Tracked as

- [CVE-2024-45295](https://cve.now/CVE-2024-45295.md): CVE-2024-45295

## Affected versions

- org.hl7.fhir.publisher.core (Maven): fixed in 1.6.22
- org.hl7.fhir.publisher.cli (Maven): fixed in 1.6.22

## Description

### Impact
XSLT transforms performed by various components are vulnerable to XML external entity injections. A processed XML file with a malicious DTD tag ( <!DOCTYPE foo [<!ENTITY example SYSTEM "/etc/passwd"> ]> could produce XML containing data from the host system. This impacts use cases where org.hl7.fhir.publisher is being used to within a host where external clients can submit XML.

### Patches
This issue has been patched as of version 1.6.22

### Workarounds
None

### References
[MITRE CWE](https://cwe.mitre.org/data/definitions/611.html)
[OWASP XML External Entity Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#transformerfactory)

## References

- https://github.com/HL7/fhir-ig-publisher/security/advisories/GHSA-59rq-22fm-x8q5

Page: https://cve.now/GHSA-59RQ-22FM-X8Q5

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
