{"id":"CVE-2026-33929","aliases":["CVE-2026-33929","GHSA-gcj8-76p4-g2fq"],"related":[],"kind":"vulnerability","state":"published","title":"Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code","summary":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache PDFBox Examples.\n\nThis issue affects the \nExtractEmbeddedFiles example in Apache PDFBox: from 2.0.24 through 2.0.36, from 3.0.0 through 3.0.7.\n\n\nUsers are recommended to update to version 2.0.37 or 3.0.8 once \navailable. Until then, they should apply the fix provided in GitHub PR \n427.\n\nThe 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\".\n\nUsers who have copied this example into their production code should apply the mentioned change. The example \nhas been changed accordingly and is available in the project repository.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache PDFBox Examples.\n\nThis issue affects the \nExtractEmbeddedFiles example in Apache PDFBox: from 2.0.24 through 2.0.36, from 3.0.0 through 3.0.7.\n\n\nUsers are recommended to update to version 2.0.37 or 3.0.8 once \navailable. Until then, they should apply the fix provided in GitHub PR \n427.\n\nThe 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\".\n\nUsers who have copied this example into their production code should apply the mentioned change. The example \nhas been changed accordingly and is available in the project repository.","source":"cvelist"},{"lang":"es","text":"Limitación Inadecuada de un Nombre de Ruta a un Directorio Restringido (’Salto de Ruta’) vulnerabilidad en los Ejemplos de Apache PDFBox.\n\nEste problema afecta al ejemplo ExtractEmbeddedFiles en Apache PDFBox: desde 2.0.24 hasta 2.0.36, desde 3.0.0 hasta 3.0.7.\n\nSe recomienda a los usuarios actualizar a la versión 2.0.37 o 3.0.8 una vez disponibles. Hasta entonces, deberían aplicar la corrección proporcionada en el PR 427 de GitHub.\n\nEl ejemplo ExtractEmbeddedFiles contenía una vulnerabilidad de salto de ruta (CWE-22) mencionada en CVE-2026-23907. Sin embargo, el cambio en las versiones 2.0.36 y 3.0.7 es defectuoso porque no considera el separador de ruta de archivo. Debido a eso, un usuario con derechos de escritura en /home/ABC podría ser víctima de un PDF malicioso resultando en un intento de escritura a cualquier ruta que comience con /home/ABC, p. ej. ’/home/ABCDEF’.\n\nLos usuarios que han copiado este ejemplo en su código de producción deberían aplicar el cambio mencionado. El ejemplo ha sido modificado en consecuencia y está disponible en el repositorio del proyecto.","source":"nvd"}],"published":"2026-04-14T08:09:39.517Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"2.0.24","lastAffected":"2.0.36","status":"affected"},{"type":"semver","introduced":"3.0.0","lastAffected":"3.0.7","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache PDFBox Examples","package":"org.apache.pdfbox:pdfbox-examples","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.24","status":"affected","fixed":"2.0.37"}],"ecosystem":"Maven","package":"org.apache.pdfbox:pdfbox-examples","purl":"pkg:maven/org.apache.pdfbox/pdfbox-examples","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.0.8"}],"ecosystem":"Maven","package":"org.apache.pdfbox:pdfbox-examples","purl":"pkg:maven/org.apache.pdfbox/pdfbox-examples","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.24","fixed":"2.0.37"},{"status":"affected","introduced":"3.0.0","fixed":"3.0.8"}],"vendor":"apache","product":"pdfbox","cpe":"cpe:2.3:a:apache:pdfbox:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/apache/pdfbox/pull/427/changes","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.apache.org/thread/op3lyx1ngzy4qycn06l6hljyf28ff0zs","tags":["mailing-list","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.apache.org/thread/j8l07tgzy9dm8d8n0f3c45h7zg7t3ld6","tags":["mailing-list","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33929","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apache/pdfbox","tags":["package"],"sources":["ghsa"]}],"credits":["Kaixuan Li"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-14T19:50:04.295Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33929","url":"https://www.cve.org/CVERecord?id=CVE-2026-33929","licence":"CVE Terms of Use","modified":"2026-04-14T19:50:07.000Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gcj8-76p4-g2fq","url":"https://github.com/advisories/GHSA-gcj8-76p4-g2fq","licence":"CC-BY-4.0","modified":"2026-04-15T00:16:14.897Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33929","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33929","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:18.676Z","epss":{"score":0.00723,"percentile":0.55244,"date":"2026-12-01T12:00:22.000Z"}}