Paper/Archive/CVE-2024-46984

CVE-2024-46984

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

Description · from the CVE record

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

ProductAffectedFixed inSource
app-referencevalidator< 2.5.1–CNA
app-referencevalidator< 2.5.12.5.1CISA-ADP

Scores by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub_M (CNA)8.6CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
CISA ADPSSVCExploitation: none · Automatable: yes · Technical impact: partial

References

refgithub.com/gematik/app-referencevalidator/security/advisories/GHSA-68j8-fp38-p48qrefcheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#transformerfactoryrefgithub.com/gematik/app-referencevalidator/releases/tag/2.5.1refowasp.org/www-community/attacks/Server_Side_Request_Forgeryrefowasp.org/www-project-top-ten/2017/A4_2017-XML_External_Entities_(XXE)refowasp.org/www-project-top-ten/2017/A4_2017-XML_External_Entities_(XXE)#