{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.pdfbox:pdfbox-examples. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-23907 in the wild and no public exploit code.","fix":"Upgrade org.apache.pdfbox:pdfbox-examples to 3.0.7 or later.","what":"CVE-2026-23907 is a medium-severity path traversal vulnerability in Apache PDFBox Examples, published on 10 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-23907 and fix it if it is affected.\n\nWhat it is: CVE-2026-23907 is a medium-severity path traversal vulnerability in Apache PDFBox Examples, published on 10 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-23907 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.pdfbox:pdfbox-examples (Maven): affected from 2.0.24; fixed in 3.0.7\n- org.apache.pdfbox:pdfbox-examples (Maven): affected from 2.0.24; fixed in 3.0.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-23907/ (Markdown: https://insights.sbomify.com/CVE-2026-23907/index.md)","id":"CVE-2026-23907","markdown":"https://insights.sbomify.com/CVE-2026-23907/index.md","name":"CVE-2026-23907","record":{"aliases":["DEBIAN-CVE-2026-23907","GHSA-jjwr-xmw6-gf78","UBUNTU-CVE-2026-23907"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Java PDF library","requires_auth":"none","summary":"Path traversal in Apache PDFBox example code allows attackers to write files outside the intended directory if the example is used in production.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"pdfbox-examples","vendor":"apache"}],"cvss":{"score":5.3,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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\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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2026-01-27","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-01-27T09:43:26Z","kind":"github_poc","ref":"https://github.com/JoakimBulow/CVE-2026-23907","stars":0,"title":"CVE-2026-23907 - pdfbox - Path Traversal"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code","id":"CVE-2026-23907","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Not used","id":"CVE-2026-23909"},"packages":[{"ecosystem":"Maven","fixed":["3.0.7"],"introduced":["2.0.24"],"last_affected":[],"package":"org.apache.pdfbox:pdfbox-examples","purl":null,"source":"GHSA-jjwr-xmw6-gf78"},{"ecosystem":"Maven","fixed":["3.0.7"],"introduced":["2.0.24"],"last_affected":[],"package":"org.apache.pdfbox:pdfbox-examples","purl":"pkg:maven/org.apache.pdfbox/pdfbox-examples","source":"GHSA-jjwr-xmw6-gf78"}],"prev":{"headline":"Apache Druid: Authentication Bypass via LDAP Anonymous Bind","id":"CVE-2026-23906"},"products":["Apache PDFBox Examples"],"published":"2026-03-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-10","vendors":["Apache Software Foundation"]},"summary":"Path traversal in Apache PDFBox example code allows attackers to write files outside the intended directory if the example is used in production.","url":"https://insights.sbomify.com/CVE-2026-23907/"}