# CVE-2026-33929: Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.3
- **CVSS:** 4.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.00% (percentile 62, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-gcj8-76p4-g2fq
- **Published:** 2026-04-14T08:09:39.517Z
- **Modified:** 2026-10-26T22:10:00.163Z

## Who should check

- Projects that depend on Maven package org.apache.pdfbox:pdfbox-examples (\>= 2.0.24, \< 2.0.37)
- Anyone running Apache Software Foundation Apache PDFBox Examples \>= 2.0.24, \<= 2.0.36; \>= 3.0.0, \<= 3.0.7

## 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 and fixed versions

- Maven `org.apache.pdfbox:pdfbox-examples`: affected \>= 2.0.24, \< 2.0.37; fixed 2.0.37, 3.0.8 (osv)
- Apache Software Foundation Apache PDFBox Examples: \>= 2.0.24, \<= 2.0.36; \>= 3.0.0, \<= 3.0.7 (cvelist)

## Mitigation

- Upgrade org.apache.pdfbox:pdfbox-examples to one of 2.0.37, 3.0.8 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-33929. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-33929.md
Affected: org.apache.pdfbox:pdfbox-examples >= 2.0.24, < 2.0.37
Fixed in: 2.0.37, 3.0.8

Steps:
1. Search this machine and project for org.apache.pdfbox:pdfbox-examples (Maven), Apache Software Foundation Apache PDFBox Examples: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-33929 being exploited?

There is no confirmed exploitation: CVE-2026-33929 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.00% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-33929?

Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-33929?

org.apache.pdfbox:pdfbox-examples \>= 2.0.24, \< 2.0.37.

### Is there a fix for CVE-2026-33929?

Yes. Fixed in 2.0.37, 3.0.8. Upgrade org.apache.pdfbox:pdfbox-examples to one of 2.0.37, 3.0.8 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-33929?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/j8l07tgzy9dm8d8n0f3c45h7zg7t3ld6>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-33929>
- patch: <https://github.com/apache/pdfbox/pull/427/changes>
- other: <https://lists.apache.org/thread/op3lyx1ngzy4qycn06l6hljyf28ff0zs>
- other: <https://github.com/apache/pdfbox>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-33929>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-gcj8-76p4-g2fq> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-33929> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-33929>
