CVE-2026-23907
MEDIUM 5.3CVSS 3.1Apache PDFBox has Path Traversal through PDComplexFileSpecification.getFilename() function
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.
- Published
- 10 Mar 2026
- Last modified
- 17 Sep 2026
- Assigned by
- security@apache.org
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-jjwr-xmw6-gf78
- Sources
- NVDJSONOSV GHSA-jjwr-xmw6-gf78JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | pdfbox-examplescpe:2.3:a:apache:pdfbox-examples:*:*:*:*:*:*:*:* |
>= 2.0.24, <= 2.0.36 | |
| NVD | apache | pdfbox-examplescpe:2.3:a:apache:pdfbox-examples:*:*:*:*:*:*:*:* |
>= 3.0.0, <= 3.0.7 | |
| OSV | Maven | org.apache.pdfbox:pdfbox-examples | >= 2.0.24, < 3.0.7 | 3.0.7 |
References
- https://github.com/JoakimBulow/ · Not Applicable
- https://lists.apache.org/thread/gyfq5tcrxfv7rx0z2yyx4hb3h53ndffw · Mailing List, Vendor Advisory, WEB
- http://www.openwall.com/lists/oss-security/2026/03/10/1 · Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-23907 · ADVISORY
- https://github.com/apache/pdfbox/commit/b028eafdf101b58e4ee95430c3be25e3e3aa29d7 · WEB
- https://github.com/apache/pdfbox · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 10 Mar 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Mar 2026)