CVE-2026-33929
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.apache.pdfbox:pdfbox-examplesMaven | >= 2.0.24, < 2.0.37 | 2.0.37 |
org.apache.pdfbox:pdfbox-examplesMaven | >= 3.0.0, < 3.0.8 | 3.0.8 |
Affected products
6- ghsa-coords5 versionspkg:maven/org.apache.pdfbox/pdfbox-examplespkg:rpm/opensuse/apache-pdfbox&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/apache-pdfbox&distro=openSUSE%20Tumbleweedpkg:rpm/suse/apache-pdfbox&distro=SUSE%20Linux%20Enterprise%20Server%2016.0pkg:rpm/suse/apache-pdfbox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0
>= 2.0.24, < 2.0.37+ 4 more
- (no CPE)range: >= 2.0.24, < 2.0.37
- (no CPE)range: < 2.0.36-160000.1.1
- (no CPE)range: < 2.0.36-1.1
- (no CPE)range: < 2.0.36-160000.1.1
- (no CPE)range: < 2.0.36-160000.1.1
Patches
Vulnerability mechanics
References
5- github.com/apache/pdfbox/pull/427/changesnvdPatchWEB
- github.com/advisories/GHSA-gcj8-76p4-g2fqghsaADVISORY
- lists.apache.org/thread/j8l07tgzy9dm8d8n0f3c45h7zg7t3ld6nvdMailing ListVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2026-33929ghsaADVISORY
- lists.apache.org/thread/op3lyx1ngzy4qycn06l6hljyf28ff0zsnvdMailing ListWEB
News mentions
0No linked articles in our index yet.