CVE-2026-23907
published medium CVSS 3.1 · 5.3Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | org.apache.pdfbox:pdfbox-examplesApache PDFBox Examples · 2.0.24 through 2.0.35 · 3.0.0 through 3.0.6 · Other versions: unaffected | Affected | Not stated | apache |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache PDFBox Examples | 2.0.24 through 2.0.35 (affected · semver)3.0.0 through 3.0.6 (affected · semver)Default: unaffected | apache · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
3Provider assertions
3apache · cna
Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8fb88e52517baa8a92716e5bec356b255de0ae10f8ac585984bf2dc54ee1b92f
- Ingested
- 23 Sep 2026, 09:06:03 UTC
- Source record
- Official CVE record