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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-10 · Modified: 2026-03-10
- Aliases: UBUNTU-CVE-2026-23907, DEBIAN-CVE-2026-23907, GHSA-jjwr-xmw6-gf78
- Record: https://cvemate.com/vulnerability/CVE-2026-23907 · JSON: https://cvemate.com/vulnerability/CVE-2026-23907/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.923%, percentile 61.584%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache pdfbox examples: ≥ 2.0.24, ≤ 2.0.35 \| ≥ 3.0.0, ≤ 3.0.6
- apache pdfbox-examples: ≥ 2.0.24, ≤ 2.0.36 \| ≥ 3.0.0, ≤ 3.0.7
- debian libpdfbox-java (Debian): All versions (No fix recorded)
- debian libpdfbox2-java (Debian): All versions (No fix recorded) \| \< 2.0.37-
- ubuntu libpdfbox-java (Ubuntu): All versions (No fix recorded)
- ubuntu libpdfbox2-java (Ubuntu): All versions (No fix recorded)
- org.apache.pdfbox pdfbox-examples (Maven): ≥ 2.0.24, \< 3.0.7

## References

- <https://github.com/JoakimBulow/>
- <https://lists.apache.org/thread/gyfq5tcrxfv7rx0z2yyx4hb3h53ndffw>
- <http://www.openwall.com/lists/oss-security/2026/03/10/1>
- <https://ubuntu.com/security/CVE-2026-23907>
- <https://www.cve.org/CVERecord?id=CVE-2026-23907>
- <https://security-tracker.debian.org/tracker/CVE-2026-23907>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23907>
- <https://github.com/apache/pdfbox/commit/b028eafdf101b58e4ee95430c3be25e3e3aa29d7>
- <https://github.com/apache/pdfbox>

---

Data as of 2026-12-05T05:13:10.041Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
