Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 9 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- 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.35; 3.0.0 – 3.0.6 | — | No fix listed | CNA |
| — | org.apache.pdfbox:pdfbox-examples (Maven) | 2.0.24 to before 3.0.7 | 3.0.7 | Patch available | GHSA-jjwr-xmw6-gf78 |
- Apache PDFBox Examples VendorApache Affected 2.0.24 – 2.0.35; 3.0.0 – 3.0.6 Fixed in — No fix listed CNA
- org.apache.pdfbox:pdfbox-examples (Maven) Vendor— Affected 2.0.24 to before 3.0.7 Fixed in 3.0.7 Patch available GHSA-jjwr-xmw6-gf78
Remediation
- Fix · GHSA-jjwr-xmw6-gf78 org.apache.pdfbox:pdfbox-examples (Maven) Fixed in 3.0.7 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat AMQ Broker 7 | Affected | No fix yet: Fix deferred |
| 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 |
| streams for Apache Kafka 2 | Affected | No fix yet: Fix deferred |
| streams for Apache Kafka 3 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-23907
- 2026-10-03 Alias added: GHSA-jjwr-xmw6-gf78
References
Advisory 3
Sources
- CVE-2026-23907 · CVE Program
- CVE-2026-23907 · NVD
- FIRST EPSS
- GHSA-jjwr-xmw6-gf78 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-23907 · 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