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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libpdfbox-java | no fix listed | DEBIAN-CVE-2026-23907 |
| Debian:13 | libpdfbox-java | no fix listed | DEBIAN-CVE-2026-23907 |
| Debian:14 | libpdfbox-java | no fix listed | DEBIAN-CVE-2026-23907 |
| Debian:12 | libpdfbox2-java | no fix listed | DEBIAN-CVE-2026-23907 |
| Debian:13 | libpdfbox2-java | no fix listed | DEBIAN-CVE-2026-23907 |
| Debian:14 | libpdfbox2-java | no fix listed | DEBIAN-CVE-2026-23907 |
| Maven | org.apache.pdfbox:pdfbox-examples | 3.0.7 | GHSA-jjwr-xmw6-gf78 |
| Ubuntu:22.04:LTS | libpdfbox-java | no fix listed | UBUNTU-CVE-2026-23907 |
| Ubuntu:24.04:LTS | libpdfbox-java | no fix listed | UBUNTU-CVE-2026-23907 |
| Ubuntu:25.10 | libpdfbox-java | no fix listed | UBUNTU-CVE-2026-23907 |
| Ubuntu:26.04:LTS | libpdfbox-java | no fix listed | UBUNTU-CVE-2026-23907 |
| Ubuntu:26.10 | libpdfbox-java | no fix listed | UBUNTU-CVE-2026-23907 |
| Ubuntu:22.04:LTS | libpdfbox2-java | no fix listed | UBUNTU-CVE-2026-23907 |
| Ubuntu:24.04:LTS | libpdfbox2-java | no fix listed | UBUNTU-CVE-2026-23907 |
| Ubuntu:25.10 | libpdfbox2-java | no fix listed | UBUNTU-CVE-2026-23907 |
| Ubuntu:26.04:LTS | libpdfbox2-java | no fix listed | UBUNTU-CVE-2026-23907 |
| Ubuntu:26.10 | libpdfbox2-java | no fix listed | UBUNTU-CVE-2026-23907 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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