Skip to main content
VulnerabilityPublished

CVE-2026-23907: Apache PDFBox Examples · Path Traversal

Affects Apache PDFBox ExamplesSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.0.7 or 2.0.36 when convenient.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.9% chance of exploitation in 30 days – higher than 59% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.0.7, 2.0.36
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade org.apache.pdfbox/pdfbox to 3.0.7 or 2.0.36.

Affected software

ProductAffectedFixed in
Apache Software FoundationApache PDFBox ExamplesAffected
  • >=2.0.24 <=2.0.35
  • >=3.0.0 <=3.0.6
Fixed in–
Mavenorg.apache.pdfbox/pdfboxpkg:maven/org.apache.pdfbox/pdfboxOther threatsAffected
  • >=2.0.24 <2.0.36
  • >=3.0.0 <3.0.7
Fixed in
  • 2.0.36
  • 3.0.7
MavenApache Software Foundation/org.apache.pdfbox:pdfbox-examplespkg:maven/Apache Software Foundation/org.apache.pdfbox:pdfbox-examplesOther threatsAffected
  • >=2.0.24 <=2.0.35
  • >=3.0.0 <=3.0.6
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Organizations should immediately review their use of Apache PDFBox, particularly any custom code derived from the ExtractEmbeddedFiles example. They should ensure that extraction paths are properly sanitized and validated by converting paths to their canonical forms and verifying that the extraction path is contained within the intended directory, as recommended by the Apache PDFBox project. Avoid using example code directly in production without security review. Upgrade to Apache PDFBox versions later than 2.0.36 or 3.0.7 where the example has been corrected. Implement strict input validation and sandboxing when processing untrusted PDF files, including limiting file system permissions of the extraction process to prevent unauthorized file writes. Monitor logs for suspicious file extraction activities and consider employing runtime application self-protection (RASP) or endpoint detection to detect anomalous file system operations. Educate developers on secure coding practices to prevent path traversal vulnerabilities. If upgrading is not immediately possible, apply manual patches to the extraction logic to enforce path validation. Finally, restrict the acceptance of PDF files from untrusted sources or implement additional scanning before processing.

Description

This issue affects the ExtractEmbeddedFiles example in Apache PDFBox: from 2.0.24 through 2.0.35, from 3.0.0 through 3.0.6. The ExtractEmbeddedFiles example contains a path traversal vulnerability (CWE-22) because the filename that is obtained from PDComplexFileSpecification.getFilename() is appended to the extraction path. Users who have copied this example into their production code should review it to ensure that the extraction path is acceptable. The example has been changed accordingly, now the initial path and the extraction paths are converted into canonical paths and it is verified that extraction path contains the initial path. The documentation has also been adjusted.

References

Community reviews

Loading reviews…