CVE-2026-23907: Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code
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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-23907?
CVE-2026-23907 has a moderate severity level due to its path traversal vulnerability affecting Apache PDFBox.
How do I fix CVE-2026-23907?
To fix CVE-2026-23907, update Apache PDFBox to versions later than 2.0.36 or 3.0.7.
Which versions are affected by CVE-2026-23907?
CVE-2026-23907 affects Apache PDFBox versions from 2.0.24 to 2.0.36 and from 3.0.0 to 3.0.7.
What type of vulnerability is CVE-2026-23907?
CVE-2026-23907 is a path traversal vulnerability classified as CWE-22.
What is the potential impact of CVE-2026-23907?
The potential impact of CVE-2026-23907 includes unauthorized file access on the server due to the path traversal issue.