CVE-2024-46984 XML External Entity Reference (XXE) vulnerability can lead to a Server Side Request Forgery attack in gematik app-referencevalidator
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
The reference validator is a tool to perform advanced validation of FHIR resources for TI applications and interoperability standards. The profile location routine in the referencevalidator commons package is vulnerable to XML External Entities attack due to insecure defaults of the used Woodstox WstxInputFactory. A malicious XML resource can lead to network requests issued by referencevalidator and thus to a Server Side Request Forgery attack. The vulnerability impacts applications which use referencevalidator to process XML resources from untrusted sources. The problem has been patched with the 2.5.1 version of the referencevalidator. Users are strongly recommended to update to this version or a more recent one. A pre-processing or manual analysis of input XML resources on existence of DTD definitions or external entities can mitigate the problem.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| de.gematik.refv.commons/commons(Maven) | < 2.5.1; = 0.1.3; = 0.2.0; = 0.3.0 +18 more | 2.5.1 | Fixed |
| gematik app-referencevalidator | < 2.5.1; = < 2.5.1 | 2.5.1 | Fixed |
| gematik reference validator | < 2.5.1 | 2.5.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| de.gematik.refv.commons/commons(Maven) | < 2.5.1 | 2.5.1 |
| de.gematik.refv.commons/commons(Maven) | = 0.1.3 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 0.2.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 0.3.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 0.4.1 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 0.5.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 0.6.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 0.6.1 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 0.7.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 0.7.1 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 0.7.2 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 1.0.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 1.1.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 2.0.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 2.0.1 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 2.0.2 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 2.1.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 2.1.1 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 2.2.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 2.3.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 2.4.0 | No fix listed |
| de.gematik.refv.commons/commons(Maven) | = 2.5.0 | No fix listed |
| gematik app-referencevalidator | = < 2.5.1 | No fix listed |
| gematik app-referencevalidator | < 2.5.1 | 2.5.1 |
| gematik reference validator | < 2.5.1 | 2.5.1 |
References
- https://github.com/gematik/app-referencevalidator/security/advisories/GHSA-68j8-fp38-p48q vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#transformerfactory technical-description
- github.com product
- https://github.com/gematik/app-referencevalidator/releases/tag/2.5.1 release-notes
- https://owasp.org/www-community/attacks/Server_Side_Request_Forgery technical-description
- https://owasp.org/www-project-top-ten/2017/A4_2017-XML_External_Entities_(XXE) technical-description
- github.com