Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attacker-supplied PDF processed automatically over a network-facing validation service gives AV:N/AC:L/PR:N/UI:N; arbitrary file read yields C:H, with no integrity or availability impact (AV:N assumes server-side exposure).
Primary rating from Vendor (https://github.com/veraPDF/veraPDF-validation).
CVSS VectorVendor: https://github.com/veraPDF/veraPDF-validation
Lifecycle Timeline
3DescriptionCVE.org
Summary
Description An 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 XFA stream. This affects all current versions of veraPDF-validation.
Details
The vulnerability resides in veraPDF-validation validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDAcroForm.java within the getdynamicRender() method. This method retrieves the /XFA entry from the PDF's /AcroForm dictionary, decodes the embedded XML stream, and parses it to extract the <dynamicRender> element value.
The vulnerability stems from the use of a default-configured DocumentBuilderFactory to parse fully attacker-controlled XML:
- The factory is created via
DocumentBuilderFactory.newInstance()with no security features enabled. disallow-doctype-decl, external-general-entities, external-parameter-entities, and FEATURE_SECURE_PROCESSING are all left at their insecure defaults. - The input passed to
builder.parse()is the decoded /XFA stream taken directly from the untrusted PDF. - The text content of the
<dynamicRender>node is returned to the validation model. Note that the shipped PDF/UA-1 rule (dynamicRender != 'required') consumes this value but does not echo it into the report output, so reliable exfiltration requires the out-of-band parameter-entity technique described under Impact rather than in-band reflection.
Impact
This impacts all current releases of the veraPDF validation-model module.
Successful exploitation requires only that the target validate an attacker-supplied PDF against the PDF/UA-1 profile (or via flavour auto-detection on a PDF that declares PDF/UA-1 conformance), since getdynamicRender() is invoked by the dynamicRender != 'required' rule in the bundled PDF/UA-1 profile. No additional configuration or operator action is required.
Proposed Patch
Harden the DocumentBuilderFactory in validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDAcroForm.java per the OWASP XXE Prevention Cheat Sheet to disallow DOCTYPE outright.
AnalysisAI
Arbitrary file read and Server-Side Request Forgery in veraPDF-validation (and the validation-model-jakarta variant) let a remote attacker exfiltrate server files or reach internal services by submitting a crafted PDF whose XFA stream carries a malicious XML DOCTYPE. The insecure XML parser is reached automatically whenever a PDF is validated against the PDF/UA-1 profile, including via flavour auto-detection, so no operator action beyond normal validation is needed. There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but the vendor advisory (GHSA-36mm-w85j-3q2j) and a fixing patch are confirmed.
Technical ContextAI
veraPDF is the open-source reference validator for PDF/A and PDF/UA archival conformance profiles. The flaw is a classic CWE-611 XML External Entity Injection in GFPDAcroForm.getdynamicRender(), which pulls the /XFA (XML Forms Architecture) stream from a PDF's /AcroForm dictionary and parses it with a DocumentBuilderFactory.newInstance() that leaves disallow-doctype-decl, external-general-entities, external-parameter-entities, and FEATURE_SECURE_PROCESSING at their insecure Java defaults. Because the parser processes fully attacker-controlled XML, DOCTYPE declarations and external/parameter entities are resolved, enabling local file disclosure and outbound requests. The same unsafe pattern also existed in DictionaryKeysHelper.getRichTextStringOrStreamEntryStringRepresentation(), which the patch hardens as well. Affected Maven coordinates are org.verapdf:validation-model and org.verapdf:validation-model-jakarta.
RemediationAI
Vendor-released patch: upgrade org.verapdf:validation-model (or validation-model-jakarta) to 1.30.2 if on the 1.x-1.30 line, or to 1.31.71 if on the 1.31.x line, per advisory GHSA-36mm-w85j-3q2j (https://github.com/veraPDF/veraPDF-validation/security/advisories/GHSA-36mm-w85j-3q2j) and PR https://github.com/veraPDF/veraPDF-validation/pull/730 (commits 94caa46 and cacd943), which replace the insecure DocumentBuilderFactory with SecureXML.newSafeDocumentBuilder(). If you cannot upgrade immediately, the most direct compensating control is to avoid validating untrusted PDFs against the PDF/UA-1 profile and to disable flavour auto-detection so a hostile PDF cannot silently select PDF/UA-1 - the trade-off is loss of PDF/UA-1 conformance checking for those jobs. Additionally, run the validator with strict egress filtering (block outbound network from the validation host to neutralize the SSRF and out-of-band exfiltration channel) and with a least-privilege filesystem account so arbitrary file reads yield minimal sensitive data; the side effect is that legitimate outbound calls from the process will also break. Do not rely on these workarounds long-term - patching is the definitive fix.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-50368
GHSA-36mm-w85j-3q2j