close

Security

Security Model

Processing untrusted PDFs is only supported to a point: malformed PDFs will not cause remote code execution or other privilege escalation problems. However, processing them may cause unchecked exceptions such as StackOverflowError or NullPointerException, or even use unexpected amounts of memory or cpu usage, including exhaustion of these.

Reporting security issues

The Apache Software Foundation takes a very active stance in eliminating and disclosing security problems against its products.

We strongly encourage folks to report such problems to our private security mailing list first, before disclosing them in a public forum.

Please note that the security mailing list should only be used for reporting undisclosed security vulnerabilities and managing the process of fixing such vulnerabilities. We cannot accept regular bug reports or other queries at this address. All mail sent to this address that does not relate to an undisclosed security problem in our source code will be ignored.

If you need to report a bug that isn't an undisclosed security vulnerability, please contact one of our mailing lists.

The private security mailing address is: security@apache.org. Please send one plain-text email for each vulnerability you are reporting.

An overview of the vulnerability handling process is:

  • The reporter reports the vulnerability privately to security@apache.org.
  • The PDFBox security team works privately with the reporter to resolve the vulnerability.
  • The PDFBox project creates a new release of the package the vulnerability affects to deliver its fix.
  • The PDFBox project publicly announces the vulnerability and describes how to apply the fix.

Committers should read a more detailed description of the process. Reporters of security vulnerabilities may also find it useful

Known vulnerabilities

CVE Summary Affected versions Fixed in
CVE-2026-33929 Path traversal in ExtractEmbeddedFiles example (incomplete fix for CVE-2026-23907) ¹ 2.0.24–2.0.36, 3.0.0–3.0.7 2.0.37 / 3.0.8
CVE-2026-23907 Path traversal in ExtractEmbeddedFiles example ¹ 2.0.24–2.0.35, 3.0.0–3.0.6 2.0.36 / 3.0.7
CVE-2021-31811 OutOfMemory loading a crafted PDF ≤ 2.0.23 2.0.24
CVE-2021-31812 Infinite loop loading a crafted PDF ≤ 2.0.23 2.0.24
CVE-2021-27807 Infinite loop loading a crafted PDF ≤ 2.0.22 2.0.23
CVE-2021-27906 OutOfMemory loading a crafted PDF ≤ 2.0.22 2.0.23
CVE-2019-0228 XML External Entity vulnerability 2.0.14 only 2.0.15
CVE-2018-11797 DoS in parser 1.8.0–1.8.15, 2.0.0RC1–2.0.11 1.8.16 / 2.0.12
CVE-2018-8036 DoS (OOM) in AFMParser 1.8.0–1.8.14, 2.0.0RC1–2.0.10 1.8.15 / 2.0.11
CVE-2016-2175 XML External Entity vulnerability 1.8.0–1.8.11, 2.0.0 1.8.12 / 2.0.1

¹ Affects the examples module only, not the core library. Users who copied ExtractEmbeddedFiles into production code should apply the fix from GitHub PR 427.