CVE-2026-23907

NameCVE-2026-23907
DescriptionThis 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libpdfbox-java (PTS)bookworm, bullseye1:1.8.16-2vulnerable
forky, sid, trixie1:1.8.16-5vulnerable
libpdfbox2-java (PTS)bullseye2.0.23-1vulnerable
bookworm2.0.27-2vulnerable
forky, sid, trixie2.0.29-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libpdfbox-javasource(unstable)(unfixed)unimportant
libpdfbox2-javasource(unstable)(unfixed)unimportant

Notes

Examples are not shipped in the Debian package
https://lists.apache.org/thread/gyfq5tcrxfv7rx0z2yyx4hb3h53ndffw

Search for package or bug name: Reporting problems