Skip to content
OpenAdvisories
Medium · 4.3 CVE-2026-33929 EUVD-2026-22229GHSA-gcj8-76p4-g2fq

Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code

Published Apr 14, 2026 · Updated Apr 14, 2026 · Assigned by apache

Description

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache PDFBox Examples.

This issue affects the
ExtractEmbeddedFiles example in Apache PDFBox: from 2.0.24 through 2.0.36, from 3.0.0 through 3.0.7.

Users are recommended to update to version 2.0.37 or 3.0.8 once
available. Until then, they should apply the fix provided in GitHub PR
427.

The ExtractEmbeddedFiles example contained a path traversal vulnerability (CWE-22) mentioned in CVE-2026-23907. However the change in the releases 2.0.36 and 3.0.7 is flawed because it doesn't consider the file path separator. Because of that, a user having writing rights on /home/ABC could be victim to a malicious PDF resulting in a write attempt to any path starting with /home/ABC, e.g. "/home/ABCDEF".

Users who have copied this example into their production code should apply the mentioned change. The example
has been changed accordingly and is available in the project repository.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache PDFBox Examples 2.0.24 – ≤ 2.0.36, 3.0.0 – ≤ 3.0.7 —

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 —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 apache-pdfbox 2.0.36-160000.1.1 SUSE-SU-2026:22088-1
SLES 16.0 apache-pdfbox 2.0.36-160000.1.1 SUSE-SU-2026:22088-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache-pdfbox 2.0.36-1.1 openSUSE-SU-2026:10550-1
openSUSE Leap 16.0 apache-pdfbox 2.0.36-160000.1.1 openSUSE-SU-2026:20923-1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.pdfbox:pdfbox-examples >= 2.0.24, < 2.0.37 2.0.37 GHSA-gcj8-76p4-g2fq
Maven org.apache.pdfbox:pdfbox-examples >= 3.0.0, < 3.0.8 3.0.8 GHSA-gcj8-76p4-g2fq

Advisories 6

References