{"id":"CVE-2026-54078","aliases":["GHSA-3jh7-wm29-q568"],"title":"veraPDF Validation XXE via Rich Text","summary":"veraPDF Validation XXE via Rich Text","severity":"high","cwe":["CWE-611"],"vendor":"verapdf","product":"org.verapdf:validation-model","ecosystem":"maven","affected":["org.verapdf:validation-model >= 1.25.73, <= 1.30.1","org.verapdf:validation-model >= 1.31.1, <= 1.31.70","org.verapdf:validation-model-jakarta >= 1.25.73, <= 1.30.1","org.verapdf:validation-model-jakarta >= 1.31.1, <= 1.31.70"],"patched":["org.verapdf:validation-model 1.30.2","org.verapdf:validation-model 1.31.71","org.verapdf:validation-model-jakarta 1.30.2","org.verapdf:validation-model-jakarta 1.31.71"],"published":"2026-07-29","updated":"2026-07-29","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-3jh7-wm29-q568","references":[{"url":"https://github.com/veraPDF/veraPDF-validation/security/advisories/GHSA-3jh7-wm29-q568"},{"url":"https://github.com/advisories/GHSA-3jh7-wm29-q568"}],"tags":["ghsa","maven"],"ingestedAt":"2026-07-29T15:48:26.025Z","epss":0.0032,"epssPercentile":0.25077,"slug":"CVE-2026-54078","body":"## Overview\n\n## Summary  \n  \n**Description**\nAn XML External Entity Injection (CWE-611) vulnerability in veraPDF allows a remote attacker to read arbitrary files on the server file system and perform Server-Side Request Forgery by submitting a crafted PDF containing a malicious rich-text (/RC or /RV) entry. This affects all current versions of veraPDF-validation.  \n  \n## Details  \nThe vulnerability resides in veraPDF-validation `validation-model/src/main/java/org/verapdf/gf/model/tools/DictionaryKeysHelper.java` within the `getRichTextStringOrStreamEntryStringRepresentation()` method. This helper extracts the XHTML rich-text body from a PDF dictionary string or stream and parses it with a DOM parser to return the concatenated text content.  \n  \nThe vulnerability stems from two combined issues:  \n- The DocumentBuilderFactory is instantiated with default settings , no disallow-doctype-decl, no disabling of external general/parameter entities, no FEATURE_SECURE_PROCESSING, and no secure EntityResolver. The default JAXP/Xerces parser will therefore resolve `<!DOCTYPE … SYSTEM \"…\">` and `<!ENTITY … SYSTEM \"…\">` declarations.  \n- After parsing, `getAllNodeText()` recursively concatenates every text node in the document and returns it as the model property value. This means the expanded contents of any external entity are reflected directly back into the validation report.  \n  \n## Impact  \n  \nThis impacts all current releases of the veraPDF validation-model module.  \n  \nSuccessful exploitation requires only that the target validate an attacker-supplied PDF. A single markup annotation with a crafted /RC string is sufficient.  \n   \n## Proposed Patch  \n  \nHarden the `DocumentBuilderFactory` in `validation-model/src/main/java/org/verapdf/gf/model/tools/DictionaryKeysHelper.java` per the OWASP XXE Prevention Cheat Sheet to disallow DOCTYPE outright.\n\n## Affected packages\n\n- `org.verapdf:validation-model >= 1.25.73, <= 1.30.1`\n- `org.verapdf:validation-model >= 1.31.1, <= 1.31.70`\n- `org.verapdf:validation-model-jakarta >= 1.25.73, <= 1.30.1`\n- `org.verapdf:validation-model-jakarta >= 1.31.1, <= 1.31.70`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `org.verapdf:validation-model 1.30.2`\n- `org.verapdf:validation-model 1.31.71`\n- `org.verapdf:validation-model-jakarta 1.30.2`\n- `org.verapdf:validation-model-jakarta 1.31.71`","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}