CVE-2026-23907CWE-22path-traversal

CVE-2026-23907

Medium · published March 10, 2026

CVSS v3.1
5.3
EPSS
1%
Percentile
59.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00901 · 59.3th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-03-10T22:18Z
Affected products (2)
ProductVersionsFixed in
apache/pdfbox-examples≥ 2.0.24, ≤ 2.0.36—
apache/pdfbox-examples≥ 3.0.0, ≤ 3.0.7—
References (3)
EPSS history
Timeline
  • 10 MAR 09:43Z
    Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code
    cvelistv5