---
id: CVE-2026-23907
title: "This issue affects the \nExtractEmbeddedFiles example in\_Apache PDFBox: from 2.0.24 through 2.0.35, from 3.0.0 through 3.0.6.\n\n\nThe ExtractEmbeddedFiles example contains a path traversal vulnerability (CWE-22) because \nthe filename that i…"
summary: "This issue affects the \nExtractEmbeddedFiles example in\_Apache PDFBox: from 2.0.24 through 2.0.35, from 3.0.0 through 3.0.6.\n\n\nThe ExtractEmbeddedFiles example contains a path traversal vulnerability (CWE-22) because \nthe filename that i…"
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-22
vendor: apache
product: pdfbox-examples
affected:
  - 'pdfbox-examples >= 2.0.24, <= 2.0.36'
  - 'pdfbox-examples >= 3.0.0, <= 3.0.7'
published: '2026-03-10'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T17:22:10.357'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-23907'
references:
  - url: 'https://github.com/JoakimBulow/'
    label: security@apache.org
  - url: 'https://lists.apache.org/thread/gyfq5tcrxfv7rx0z2yyx4hb3h53ndffw'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/03/10/1'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - exploit-available
epss: 0.00886
epssPercentile: 0.57721
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/JoakimBulow/CVE-2026-23907'
  checkedAt: '2026-09-23T07:13:55.579Z'
exploitAvailable: true
ingestedAt: '2026-09-17T17:23:30.592Z'
---

## Overview

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.

## Affected

- `pdfbox-examples >= 2.0.24, <= 2.0.36`
- `pdfbox-examples >= 3.0.0, <= 3.0.7`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
