Skip to main content

veraPDF-validation CVE-2026-54082

| EUVDEUVD-2026-50370 MEDIUM
Improper Restriction of XML External Entity Reference (CWE-611)
2026-07-29 https://github.com/veraPDF/veraPDF-validation GHSA-cg9x-g3gm-h5h6
6.5
CVSS 3.1 · Vendor: https://github.com/veraPDF/veraPDF-validation
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft PDF with XXE entity targeting local file or SSRF endpoint
  2. Delivery
    Submit PDF to veraPDF-consuming service endpoint
  3. Exploit
    Invoke PDFAValidator.validate() or getdynamicRender() on PDF
  4. Execution
    Unconfigured DocumentBuilder expands external entity
  5. Persist
    JVM resolves file:// or http:// URI
  6. Impact
    Exfiltrate resolved content via SSRF callback or response channel

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration XML external entity prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application passes attacker-controlled PDF content to either PDFAValidator.validate(...) or GFPDAcroForm(acroForm).getdynamicRender() using a vulnerable version of org.verapdf:validation-model or org.verapdf:validation-model-jakarta (1.17.35-1.30.1 or 1.31.1-1.31.70). The PDF must contain XML-formatted content in one of two specific structures: rich-text annotation or form-field values (triggering DictionaryKeysHelper) or XFA form configuration data (triggering GFPDAcroForm). No special server-side configuration is required beyond having the vulnerable library version on the classpath. Exploitation is bounded by the OS-level permissions of the JVM process for file disclosure, and by host network egress controls for SSRF; the JVM security manager, if enabled, may also restrict external resource access. Downstream application-level authentication limits which users can submit PDFs but does not mitigate the vulnerability once a PDF reaches the parsing layer.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N scores 6.5 (Medium), but the practical impact warrants closer scrutiny. C:L and I:L in the context of XXE translate to arbitrary local file reads - including application configuration files, secrets, and OS-level files such as /etc/passwd or cloud credential stores - and SSRF to internal network endpoints. In containerized or cloud environments, SSRF may reach instance metadata services (e.g., AWS IMDSv1 at 169.254.169.254), escalating the effective severity well beyond the base score. Attack complexity is genuinely low: XXE payload construction is trivial and extensively documented. No EPSS score was provided in the input, and no CISA KEV listing exists, so exploitation probability cannot be precisely quantified from available intelligence. The CVSS PR:N designation reflects that no authentication is required at the library level; downstream applications may impose their own authentication before the vulnerable API is reached, which would limit exposure to authenticated users. The actual risk is highest for any internet-facing service that accepts and validates user-supplied PDF files without authentication, such as document compliance portals or PDF ingestion pipelines.

Exploit ScenarioDerived

An attacker submits a crafted PDF to a document management portal that uses veraPDF to validate uploaded files; the PDF contains an XFA form with an XML external entity declaration pointing to file:///etc/passwd or an SSRF target such as http://169.254.169.254/latest/meta-data/. When the portal calls PDFAValidator.validate() on the uploaded file, the unprotected DocumentBuilder resolves the external entity, and the attacker exfiltrates the resolved content by triggering an outbound HTTP callback to an attacker-controlled server carrying the file data in the request body or URL. No authentication at the library level is required, so any user permitted to upload a PDF to the service can execute this attack.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 29, 2026

XML External Entity injection in veraPDF-validation's PDF parsing layer allows unauthenticated remote attackers to read arbitrary local files from the server or trigger outbound server-side requests to attacker-controlled endpoints by supplying crafted PDF documents. The two vulnerable code paths - PDFAValidator.validate() and GFPDAcroForm.getdynamicRender() - both use an unconfigured DocumentBuilderFactory that permits full DTD and external entity expansion. Patches are confirmed in versions 1.30.2 and 1.31.71; no public exploit or CISA KEV listing was identified at time of analysis.

RemediationAI

Upgrade org.verapdf:validation-model or org.verapdf:validation-model-jakarta to version 1.30.2 if running on the 1.17.35-1.30.x branch, or to version 1.31.71 if on the 1.31.x branch; these are the vendor-released patched versions confirmed by the GitHub Security Advisory at https://github.com/veraPDF/veraPDF-validation/security/advisories/GHSA-cg9x-g3gm-h5h6 and implemented in PR #730 (https://github.com/veraPDF/veraPDF-validation/pull/730). If immediate upgrade is not feasible, two compensating controls reduce impact without eliminating the flaw: first, apply network egress restrictions on the JVM process to block outbound HTTP/HTTPS, which prevents SSRF exfiltration but does not stop local file disclosure; second, run the veraPDF process under an OS user with minimal filesystem permissions, limiting the scope of any file read to non-sensitive paths. Disabling XFA form processing or rich-text annotation handling at the application configuration level, if those features are not required, removes the affected parsing surface entirely. None of these workarounds substitute for patching, as they address impact rather than the root cause.

Affected VersionsENISA

veraPDF-validation 1.31.1, < 1.31.71
veraPDF-validation 1.17.35, < 1.30.2

Affected Packages

maven org.verapdf:validation-model fix: 1.30.2, 1.31.71
maven org.verapdf:validation-model-jakarta fix: 1.30.2, 1.31.71
euvd verapdf_validation_1_17_35 fix: 1.30.2
euvd verapdf_validation_1_31_1 fix: 1.31.71

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

veraPDF is an open-source Java-based PDF/A validator distributed as Maven artifacts org.verapdf:validation-model and org.verapdf:validation-model-jakarta. The root cause (CWE-611: Improper Restriction of XML External Entity Reference) manifests in two distinct Java source files: GFPDAcroForm.java processes XFA form configurations, while DictionaryKeysHelper.java processes rich-text annotation and form-field values. Both call DocumentBuilderFactory.newInstance().newDocumentBuilder() without applying any hardening - they fail to disable DOCTYPE/DTD processing, external entity expansion, XInclude, or external schema access. Java's default DocumentBuilder is fully permissive in these respects. The confirmed fix (PR #730, commits 94caa46c and cacd9436) replaces both insecure factory calls with SecureXML.newSafeDocumentBuilder() from org.verapdf.xmp.tools.SecureXML, a utility that configures the factory with standard security features. The vulnerability surfaces specifically when the parser encounters XML-formatted content within PDF structures such as XFA forms or rich-text annotation values that contain external entity declarations.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/veraPDF/veraPDF-validation) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 6.5 MEDIUM

PDF submitted remotely without auth triggers XXE; I:L reflects SSRF potential for indirect internal-state modification; A:N as parsing does not crash the service.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/veraPDF/veraPDF-validation).

CVSS VectorVendor: https://github.com/veraPDF/veraPDF-validation

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

veraPDF-validation has an XML External Entity (XXE) vulnerability in two PDF parsing paths (validate and GFPDAcroForm.getdynamicRender()). A malicious/crafted PDF supplied to a veraPDF consumer can lead to the expansion of external entities while parsing rich-text annotation/form-field values or XFA configurations, allowing local file disclosure and potentially outbound network requests depending on the runtime (host) environment.

Details

Consumers that utilise either the PDFAValidator.validate(...) or GFPDAcroForm(acroForm).getdynamicRender() APIs to process untrusted PDFs are vulnerable to XXE exploits.

Both vulnerable paths share the same root cause: the underlying source binds a default DocumentBuilderFactory and immediately calls newDocumentBuilder() which does not disable parsing of DTDs, external entities, XInclude, or external resource access directives in XML schemas.

This is an XXE vulnerability affecting applications that use veraPDF's affected APIs to parse or validate untrusted PDFs.

An attacker could craft a PDF that includes crafted XML external entities that when processed by vulnerable consumers could lead to local file disclosure and server-side outbound requests to attacker-controlled endpoints, depending on JVM XML parser behavior and network controls on the host.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche open-source PDF/A compliance validator, limited enterprise footprint
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy