{"id":"CVE-2026-23907","published":"2026-03-10T09:43:40Z","modified":"2026-03-10T17:51:53Z","title":"Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code","vendor":"Apache","product":"Apache PDFBox Examples","tier":"tail","description":{"text":"This issue affects the \nExtractEmbeddedFiles example in Apache PDFBox: from 2.0.24 through 2.0.35, from 3.0.0 through 3.0.6.\n\n\nThe ExtractEmbeddedFiles example contains a path traversal vulnerability (CWE-22) because \nthe filename that is obtained from \nPDComplexFileSpecification.getFilename() is appended to the extraction path.\n\nUsers who have copied this example into their production code should \nreview it to ensure that the extraction path is acceptable. The example \nhas been changed accordingly, now the initial path and the extraction \npaths are converted into canonical paths and it is verified that \nextraction path contains the initial path. The documentation has also \nbeen adjusted.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0099,"percentile":0.63359,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/JoakimBulow/","tags":[]},{"url":"https://lists.apache.org/thread/gyfq5tcrxfv7rx0z2yyx4hb3h53ndffw","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/10/1","tags":[]}],"priority":{"score":21.4,"factors":[{"name":"EPSS percentile","points":12.67},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-01-27","earliestUrl":"https://github.com/JoakimBulow/CVE-2026-23907","repos":[{"name":"JoakimBulow/CVE-2026-23907","url":"https://github.com/JoakimBulow/CVE-2026-23907","stars":0,"created":"2026-01-27"}]},"first":{"date":"2026-01-27","source":"PoC-in-GitHub","url":"https://github.com/JoakimBulow/CVE-2026-23907"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache PDFBox Examples","versions":[">= 2.0.24, <= 2.0.35",">= 3.0.0, <= 3.0.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-10T17:51:34.025936Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.pdfbox:pdfbox-examples","vulnerableRanges":[">=2.0.24, <3.0.7"],"patched":["3.0.7"],"from":["GHSA-jjwr-xmw6-gf78"],"provenance":"source"}],"summary":{"text":"A path traversal flaw (CWE-22) exists in the ExtractEmbeddedFiles example shipped with Apache PDFBox Examples, affecting versions 2.0.24 through 2.0.35 and 3.0.0 through 3.0.6, where the filename read from PDComplexFileSpecification.getFilename() is appended to the extraction path without validation. An attacker can exploit this over the network without authentication or user interaction by supplying a PDF with a crafted embedded file name, with the impact limited to the code path where users have copied this example into their own production code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:37Z"},"euvd":{"id":"EUVD-2026-10481","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-23907","published":"2026-03-10","fixed":"3.0.7","kev":false},{"cve":"CVE-2026-33929","published":"2026-04-14","fixed":"3.0.8","kev":false,"link":{"from":"CVE-2026-23907","to":"CVE-2026-33929","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.pdfbox:pdfbox-examples","fromFixed":"3.0.7","toFixed":"3.0.8","daysApart":35},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same product + CWE + description similarity"}]}}],"package":"Maven:org.apache.pdfbox:pdfbox-examples"}}