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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache PDFBox Examples | 2.0.24 – ≤ 2.0.35, 3.0.0 – ≤ 3.0.6 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libpdfbox-java +1 | No fix yet | — |
| Debian 13 | libpdfbox-java +1 | No fix yet | — |
| Debian 12 | libpdfbox-java +1 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 26.04 LTS | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 25.10 | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 24.04 LTS | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 22.04 LTS | libpdfbox-java +1 | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 18.04 LTS | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 16.04 LTS | libpdfbox-java | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
JoakimBulow/CVE-2026-23907 ★ 0 · Jan 27, 2026
CVE-2026-23907 - pdfbox - Path Traversal
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.pdfbox:pdfbox-examples | >= 2.0.24, < 3.0.7 | 3.0.7 | GHSA-jjwr-xmw6-gf78 |
Advisories 1
- WID-SEC-2026-1687 IBM License Metric Tool: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Sep 1, 2026