CVE-2026-23907

Source
https://cve.org/CVERecord?id=CVE-2026-23907
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23907.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-23907
Aliases
Downstream
Published
2026-03-10T09:43:40.384Z
Modified
2026-08-12T03:51:32.700382047Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23907.json",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "2.0.24"
                },
                {
                    "last_affected": "2.0.35"
                },
                {
                    "introduced": "3.0.0"
                },
                {
                    "last_affected": "3.0.6"
                }
            ]
        },
        {
            "source": "DESCRIPTION",
            "extracted_events": [
                {
                    "introduced": "2.0.24"
                },
                {
                    "fixed": "2.0.35"
                },
                {
                    "introduced": "3.0.0"
                },
                {
                    "fixed": "3.0.6"
                }
            ]
        }
    ],
    "cwe_ids": [
        "CWE-22"
    ],
    "cna_assigner": "apache"
}
References

Affected packages

Git / github.com/apache/pdfbox

Affected ranges

Type
GIT
Repo
https://github.com/apache/pdfbox
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:apache:pdfbox:*:*:*:*:*:*:*:*",
    "source": "CPE_RANGE",
    "extracted_events": [
        {
            "introduced": "2.0.24"
        },
        {
            "last_affected": "2.0.35"
        },
        {
            "introduced": "3.0.0"
        },
        {
            "last_affected": "3.0.7"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23907.json"