Skip to content
OpenAdvisories
Medium · 5.3 Public exploit CVE-2026-23907 EUVD-2026-10481GHSA-jjwr-xmw6-gf78

Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code

Published Mar 10, 2026 · Updated Mar 10, 2026 · Assigned by apache

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache PDFBox Examples 2.0.24 – ≤ 2.0.35, 3.0.0 – ≤ 3.0.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libpdfbox-java +1 No fix yet —
Debian 13 libpdfbox-java +1 No fix yet —
Debian 12 libpdfbox-java +1 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libpdfbox-java +1 No fix yet —
Ubuntu 26.04 LTS libpdfbox-java +1 No fix yet —
Ubuntu 25.10 libpdfbox-java +1 No fix yet —
Ubuntu 24.04 LTS libpdfbox-java +1 No fix yet —
Ubuntu 22.04 LTS libpdfbox-java +1 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libpdfbox-java +1 No fix yet —
Ubuntu 18.04 LTS libpdfbox-java +1 No fix yet —
Ubuntu 16.04 LTS libpdfbox-java No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.pdfbox:pdfbox-examples >= 2.0.24, < 3.0.7 3.0.7 GHSA-jjwr-xmw6-gf78

Advisories 1

References