Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 6 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache PDFBox Examples | 2.0.24 – 2.0.36; 3.0.0 – 3.0.7 | — | No fix listed | CNA |
| — | org.apache.pdfbox:pdfbox-examples (Maven) | 2.0.24 to before 2.0.37 | 2.0.37 | Patch available | GHSA-gcj8-76p4-g2fq |
| — | org.apache.pdfbox:pdfbox-examples (Maven) | 3.0.0 to before 3.0.8 | 3.0.8 | Patch available | GHSA-gcj8-76p4-g2fq |
- Apache PDFBox Examples VendorApache Affected 2.0.24 – 2.0.36; 3.0.0 – 3.0.7 Fixed in — No fix listed CNA
- org.apache.pdfbox:pdfbox-examples (Maven) Vendor— Affected 2.0.24 to before 2.0.37 Fixed in 2.0.37 Patch available GHSA-gcj8-76p4-g2fq
- org.apache.pdfbox:pdfbox-examples (Maven) Vendor— Affected 3.0.0 to before 3.0.8 Fixed in 3.0.8 Patch available GHSA-gcj8-76p4-g2fq
Remediation
- Fix · GHSA-gcj8-76p4-g2fq org.apache.pdfbox:pdfbox-examples (Maven) Fixed in 2.0.37 Advisory →
- Fix · GHSA-gcj8-76p4-g2fq org.apache.pdfbox:pdfbox-examples (Maven) Fixed in 3.0.8 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Data Grid 8 | Affected | No fix yet: Fix deferred |
| Red Hat Fuse 7 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 7 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 8 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix yet: Fix deferred |
| Red Hat build of Apache Camel for Spring Boot 4 | Affected | No fix yet: Fix deferred |
Not affected: 2 products
- Red Hat AMQ Broker 7
- streams for Apache Kafka 2
Timeline
- 2026-10-02 Threatist record created from CVE-2026-33929
- 2026-10-03 Alias added: GHSA-gcj8-76p4-g2fq
References
More Apache Pdfbox vulnerabilities
- TI-2019-00201 XML external entity injection in Apache PDFBox CVSS 3.1CRITICAL 9.8
- TI-2016-01985 Apache PDFBox before 1.8.12 and 2.x before 2.0.1 does not properly initialize the XML… CVSS 3.0HIGH 7.8
- TI-2018-05813 Infinite loop in Apache PDFBox CVSS 3.0MEDIUM 6.5
- TI-2021-11808 A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading a tiny file CVSS 3.1MEDIUM 5.5
- TI-2021-09241 A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file CVSS 3.1MEDIUM 5.5
- TI-2018-08451 Uncontrolled resource consumption in Apache PDFBox CVSS 3.1MEDIUM 5.5
Sources
- CVE-2026-33929 · CVE Program
- CVE-2026-33929 · NVD
- FIRST EPSS
- GHSA-gcj8-76p4-g2fq · GitHub Advisory Database · CC BY 4.0
- CVE-2026-33929 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences