cve.bz

CVE-2026-23907 apache pdfbox-examples: Path traversal

5.3 mediumEPSS 1.0%Fix available

Medium (5.3) in apache pdfbox-examples. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.pdfbox:pdfbox-examples 3.0.7.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
1.0% (unchanged from 1.0% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 63rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-03-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-23907 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-23907?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-23907?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-23907 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache PDFBox Examplesfrom 2.0.24 through 2.0.35
Apache Software Foundation Apache PDFBox Examplesfrom 3.0.0 through 3.0.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jjwr-xmw6-gf78Mavenorg.apache.pdfbox:pdfbox-examples>=2.0.24 <3.0.73.0.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libpdfbox-java, libpdfbox2-javano fix listedDEBIAN-CVE-2026-23907
Ubuntu16.04:LTSlibpdfbox-javano fix listedUBUNTU-CVE-2026-23907
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morelibpdfbox-java, libpdfbox2-javano fix listedUBUNTU-CVE-2026-23907

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security rates this issue as Moderate severity, because the vulnerable code exists in the example implementation shipped with Apache PDFBox and is not part of the core library functionality.

Applications that copied or reused the ExtractEmbeddedFiles example code without adding proper path validation may allow path traversal during extraction of embedded files from PDF documents. The impact is limited to the permissions of the application processing the PDF.

Systems that do not use this example code or that properly sanitize extraction paths are not affected.

Red Hat's mitigation

Red Hat is not aware of a practical temporary workaround that fully mitigates this issue or meets Red Hat Product Security's standards for usability, deployment, applicability, or stability. Customers are advised to apply the relevant security updates if they become available.

ProductPackageStateAdvisory
Red Hat AMQ Broker 7pdfboxFix deferred
Red Hat build of Apache Camel for Spring Boot 4pdfboxFix deferred
Red Hat build of Apache Camel for Spring Boot 4pdfbox-ioFix deferred
Red Hat build of Apache Camel for Spring Boot 4pdfbox-toolsFix deferred
Red Hat Data Grid 8pdfboxFix deferred
Red Hat Fuse 7pdfboxFix deferred
Red Hat Fuse 7pdfbox-toolsFix deferred
Red Hat JBoss Enterprise Application Platform 7pdfboxFix deferred
Red Hat JBoss Enterprise Application Platform 7pdfbox-toolsFix deferred
Red Hat JBoss Enterprise Application Platform 8pdfboxFix deferred
Red Hat JBoss Enterprise Application Platform 8pdfbox-ioFix deferred
Red Hat JBoss Enterprise Application Platform 8pdfbox-toolsFix deferred
Red Hat JBoss Enterprise Application Platform Expansion PackpdfboxFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packpdfbox-ioFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packpdfbox-toolsFix deferred
streams for Apache Kafka 2pdfboxFix deferred
streams for Apache Kafka 3pdfboxFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-23907.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON