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

Published Mar 10, 2026
·
Updated

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

4 affected componentsFixes available
Apache PDFBox>=2.0.24<2.0.35, >=3.0.0<3.0.6
maven/org.apache.pdfbox:pdfbox-examples>=2.0.24<3.0.7
3.0.7
Apache PDFBox>=2.0.24<=2.0.35
Apache PDFBox>=3.0.0<=3.0.7

Event History

Mar 10, 2026
CVE Published
via MITRE·09:43 AM
Data Sourced
via MITRE·09:43 AM
DescriptionWeakness
Data Sourced
via NVD·06:18 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:31 PM
Data Sourced
via GitHub·06:31 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

What type of vulnerability is CVE-2026-23907?

CVE-2026-23907 is a path traversal vulnerability classified as CWE-22.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203