veraPDF Validation XXE via Rich Text
veraPDF-validation
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.verapdf:validation-model Maven |
|
|
| org.verapdf:validation-model-jakarta Maven |
|
veraPDF-validation
| Product | Affected | Fixed in |
|---|---|---|
| org.verapdf:validation-model Maven |
|
|
| org.verapdf:validation-model-jakarta Maven |
|
|
veraPDF validation model is an implementation of the veraPDF validation model. From 1.25.73 until 1.30.2 and 1.31.71, veraPDF-validation contains an XML External Entity (XXE) vulnerability in validation-model/src/main/java/org/verapdf/gf/model/tools/DictionaryKeysHelper.java in getRichTextStringOrStreamEntryStringRepresentation(), where a crafted PDF containing a malicious rich-text /RC or /RV entry can cause external entity expansion and reflect local file contents into the validation report. This issue is fixed in versions 1.30.2 and 1.31.71.
From the CVE record · GitHub_M
veraPDF-validation has an XML External Entity vulnerability in its rich-text validation code. When it processes a crafted PDF with a malicious /RC or /RV entry, local file contents can be reflected into the validation report. The input does not specify an authentication requirement or how the PDF must be delivered.
Check applications using Maven org.verapdf:validation-model or org.verapdf:validation-model-jakarta versions >=1.25.73 <1.30.2 or >=1.31.1 <1.31.71.