CVE-2024-46984
JSON

8.6high

XML External Entity Reference (XXE) vulnerability can lead to a Server Side Request Forgery attack in gematik app-referencevalidator

Severity
8.6high CVSS:3.1 by GitHub_M
Exploit likelihood
0.64% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-68j8-fp38-p48q

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.

Affected

Product or packageVersionsReported by
gematik app-referencevalidator< 2.5.1, before 2.5.1CVE List
de.gematik.refv.commons:commons (Maven)before 2.5.1GitHub Advisory Database
gematik reference_validatorbefore 2.5.1NVD

All scores

GitHub_M8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
GitHub8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-611

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

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.

Workarounds

A pre-processing or manual analysis of input XML resources on existence of DTD definitions or external entities can mitigate the problem.

References
NVD (es)

El validador de referencia es una herramienta para realizar una validación avanzada de recursos FHIR para aplicaciones TI y estándares de interoperabilidad. La rutina de ubicación de perfil en el paquete commons referencevalidator es vulnerable al ataque de "Entidades externas XML" debido a valores predeterminados inseguros del WstxInputFactory de Woodstox utilizado. Un recurso XML malicioso puede provocar solicitudes de red emitidas por referencevalidator y, por lo tanto, un ataque de "Server Side Request Forgery". La vulnerabilidad afecta a las aplicaciones que utilizan referencevalidator para procesar recursos XML de fuentes no confiables. El problema se ha solucionado con la versión 2.5.1 de referencevalidator. Se recomienda encarecidamente a los usuarios que actualicen a esta versión o a una más reciente. Un preprocesamiento o un análisis manual de los recursos XML de entrada en busca de definiciones de DTD o entidades externas puede mitigar el problema.

References

https://github.com/gematik/app-referencevalidator/security/advisories/GHSA-68j8-fp38-p48qvendor-advisory, web
https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#transformerfactorytechnical-description, web
https://github.com/gematik/app-referencevalidator/releases/tag/2.5.1release-notes, web
https://owasp.org/www-community/attacks/Server_Side_Request_Forgerytechnical-description, web
https://owasp.org/www-project-top-ten/2017/A4_2017-XML_External_Entities_(XXE)technical-description, web
https://owasp.org/www-project-top-ten/2017/A4_2017-XML_External_Entities_(XXE)#technical-description, web
https://nvd.nist.gov/vuln/detail/CVE-2024-46984advisory
https://github.com/gematik/app-referencevalidator/commit/d6d27613fab7a8dd08534946f29e0c51f319cad6web
https://github.com/gematik/app-referencevalidatorpackage

Sources

SourceRecordLicence
CVE ListCVE-2024-46984 changed 2024-09-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-68j8-fp38-p48q changed 2024-09-20CC-BY-4.0
NVDCVE-2024-46984 changed 2026-06-17Public domain