Directory Traversal Affecting libpdfbox2-java package, versions *


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.89% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN11-LIBPDFBOX2JAVA-15510373
  • published13 Mar 2026
  • disclosed10 Mar 2026

Introduced: 10 Mar 2026

CVE-2026-23907  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

There is no fixed version for Debian:11 libpdfbox2-java.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libpdfbox2-java package and not the libpdfbox2-java package as distributed by Debian. See How to fix? for Debian:11 relevant fixed versions and status.

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.