CVE 4.3 MEDIUM

Apache PDFBox Examples: Path Traversal in PDFBox ExtractEmbeddedFiles Example Code_CVE-2026-33929

4.3 / 10
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Description

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache PDFBox Examples.

This issue affects the
ExtractEmbeddedFiles example in Apache PDFBox: from 2.0.24 through 2.0.36, from 3.0.0 through 3.0.7.


Users are recommended to update to version 2.0.37 or 3.0.8 once
available. Until then, they should apply the fix provided in GitHub PR
427.

The 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".

Users who have copied this example into their production code should apply the mentioned change. The example
has been changed accordingly and is available in the project repository.

Basic Information

ID CVE-2026-33929
Source apache
Published Apr 14, 2026 at 08:09
Modified Apr 14, 2026 at 19:50

Affected Product

Vendor Apache Software Foundation
Product Apache PDFBox Examples
Version 2.0.24
Affected Versions Apache Software Foundation Apache PDFBox Examples 2.0.24
Apache Software Foundation Apache PDFBox Examples 3.0.0

CWE Classification

References

πŸ’­ Join the Security Discussion

πŸ”’ Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.