Vulnerability · Published Mar 10, 2026 · Assigned by apache

CVE-2026-23907Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code

Medium 5.3

In plain English

A medium-severity path traversal in Apache PDFBox Examples from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.0%top 37.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libpdfbox-javano fix listedDEBIAN-CVE-2026-23907
Debian:13libpdfbox-javano fix listedDEBIAN-CVE-2026-23907
Debian:14libpdfbox-javano fix listedDEBIAN-CVE-2026-23907
Debian:12libpdfbox2-javano fix listedDEBIAN-CVE-2026-23907
Debian:13libpdfbox2-javano fix listedDEBIAN-CVE-2026-23907
Debian:14libpdfbox2-javano fix listedDEBIAN-CVE-2026-23907
Mavenorg.apache.pdfbox:pdfbox-examples3.0.7GHSA-jjwr-xmw6-gf78
Ubuntu:22.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2026-23907
Ubuntu:24.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2026-23907
Ubuntu:25.10libpdfbox-javano fix listedUBUNTU-CVE-2026-23907
Ubuntu:26.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2026-23907
Ubuntu:26.10libpdfbox-javano fix listedUBUNTU-CVE-2026-23907
Ubuntu:22.04:LTSlibpdfbox2-javano fix listedUBUNTU-CVE-2026-23907
Ubuntu:24.04:LTSlibpdfbox2-javano fix listedUBUNTU-CVE-2026-23907
Ubuntu:25.10libpdfbox2-javano fix listedUBUNTU-CVE-2026-23907
Ubuntu:26.04:LTSlibpdfbox2-javano fix listedUBUNTU-CVE-2026-23907
Ubuntu:26.10libpdfbox2-javano fix listedUBUNTU-CVE-2026-23907

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache PDFBox Examples 2.0.24 – through 2.0.353.0.0 – through 3.0.6

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References