Description
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache PDFBox Examples.
This issue affects the
ExtractEmbeddedFiles example in Apache PDFBox: from 2.0.24 through 2.0.36, from 3.0.0 through 3.0.7.
Users are recommended to update to version 2.0.37 or 3.0.8 once
available. Until then, they should apply the fix provided in GitHub PR
427.
The ExtractEmbeddedFiles example contained a path traversal vulnerability (CWE-22) mentioned in CVE-2026-23907. However the change in the releases 2.0.36 and 3.0.7 is flawed because it doesn't consider the file path separator. Because of that, a user having writing rights on /home/ABC could be victim to a malicious PDF resulting in a write attempt to any path starting with /home/ABC, e.g. "/home/ABCDEF".
Users who have copied this example into their production code should apply the mentioned change. The example
has been changed accordingly and is available in the project repository.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache PDFBox Examples | 2.0.24 – ≤ 2.0.36, 3.0.0 – ≤ 3.0.7 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libpdfbox-java +1 | No fix yet | — |
| Debian 13 | libpdfbox-java +1 | No fix yet | — |
| Debian 12 | libpdfbox-java +1 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 26.04 LTS | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 25.10 | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 24.04 LTS | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 22.04 LTS | libpdfbox-java +1 | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 18.04 LTS | libpdfbox-java +1 | No fix yet | — |
| Ubuntu 16.04 LTS | libpdfbox-java | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | apache-pdfbox | 2.0.36-160000.1.1 | SUSE-SU-2026:22088-1 |
| SLES 16.0 | apache-pdfbox | 2.0.36-160000.1.1 | SUSE-SU-2026:22088-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | apache-pdfbox | 2.0.36-1.1 | openSUSE-SU-2026:10550-1 |
| openSUSE Leap 16.0 | apache-pdfbox | 2.0.36-160000.1.1 | openSUSE-SU-2026:20923-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.pdfbox:pdfbox-examples | >= 2.0.24, < 2.0.37 | 2.0.37 | GHSA-gcj8-76p4-g2fq |
| Maven | org.apache.pdfbox:pdfbox-examples | >= 3.0.0, < 3.0.8 | 3.0.8 | GHSA-gcj8-76p4-g2fq |
Advisories 6
- WID-SEC-2026-1687 IBM License Metric Tool: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Sep 1, 2026
- NCSC-2026-0312 Kwetsbaarheden verholpen in Oracle Financial Services NCSC-NL (Netherlands) · Aug 19, 2026
- WID-SEC-2026-2895 Oracle Financial Services Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 18, 2026
- SUSE-SU-2026:22088-1 Security update for apache-pdfbox SUSE / openSUSE Security Updates · Jun 16, 2026
- openSUSE-SU-2026:20923-1 Security update for apache-pdfbox SUSE / openSUSE Security Updates · Jun 10, 2026
- openSUSE-SU-2026:10550-1 apache-pdfbox-2.0.36-1.1 on GA media SUSE / openSUSE Security Updates · Apr 16, 2026