libpdfbox-java, libpdfbox2-java — security advisory
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.
- Products
- libpdfbox-java, libpdfbox2-java
- Affected versions
- 1:1.8.10-1, 1:1.8.10-2, 1:1.8.11+dfsg-1, 1:1.8.13-1, 1:1.8.13-2, 1:1.8.16-2, 1:1.8.16-2~18.04, 1:1.8.16-4, 1:1.8.16-5, 1:1.8.7+dfsg-1, 2.0.13-2~18.04, 2.0.16-1, 2.0.17-1, 2.0.18-1, 2.0.23-1, 2.0.24-2, 2.0.25-1, 2.0.27-2, 2.0.29-1, 2.0.7-1, 2.0.8-1, 2.0.8-2, 2.0.9-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-23907
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:58 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-23907
libpdfbox-java
Fixed versions: Not specified
libpdfbox-java
Fixed versions: Not specified
libpdfbox2-java
Fixed versions: Not specified
libpdfbox-java
Fixed versions: Not specified
libpdfbox2-java
Fixed versions: Not specified
libpdfbox-java
Fixed versions: Not specified
libpdfbox2-java
Fixed versions: Not specified
libpdfbox-java
Fixed versions: Not specified
libpdfbox2-java
Fixed versions: Not specified
libpdfbox-java
Fixed versions: Not specified
libpdfbox2-java
Fixed versions: Not specified
libpdfbox-java
Fixed versions: Not specified
libpdfbox2-java
Fixed versions: Not specified
libpdfbox-java
Fixed versions: Not specified
libpdfbox2-java
Fixed versions: Not specified
Complete source record
{
"id": "69cbd9671ba710d30d57a5259c2404e3ffe11683415c1e8cdefa474f6087af5e",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-23907",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-23907",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2026-23907",
"products": [
{
"name": {
"value": "libpdfbox-java",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:1.8.7+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1:1.8.10-1",
"evidence": "/affected/0/versions"
},
{
"value": "1:1.8.10-2",
"evidence": "/affected/0/versions"
},
{
"value": "1:1.8.11+dfsg-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libpdfbox-java",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:1.8.13-1",
"evidence": "/affected/1/versions"
},
{
"value": "1:1.8.13-2",
"evidence": "/affected/1/versions"
},
{
"value": "1:1.8.16-2~18.04",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libpdfbox2-java",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.7-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.8-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.8-2",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.9-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.13-2~18.04",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libpdfbox-java",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:1.8.16-2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libpdfbox2-java",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.16-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.0.17-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.0.18-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libpdfbox-java",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:1.8.16-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libpdfbox2-java",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.23-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.0.24-2",
"evidence": "/affected/6/versions"
},
{
"value": "2.0.25-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "libpdfbox-java",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:1.8.16-4",
"evidence": "/affected/7/versions"
},
{
"value": "1:1.8.16-5",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "libpdfbox2-java",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.27-2",
"evidence": "/affected/8/versions"
},
{
"value": "2.0.29-1",
"evidence": "/affected/8/versions"
}
]
},
{
"name": {
"value": "libpdfbox-java",
"evidence": "/affected/9/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:1.8.16-5",
"evidence": "/affected/9/versions"
}
]
},
{
"name": {
"value": "libpdfbox2-java",
"evidence": "/affected/10/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.29-1",
"evidence": "/affected/10/versions"
}
]
},
{
"name": {
"value": "libpdfbox-java",
"evidence": "/affected/11/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:1.8.16-5",
"evidence": "/affected/11/versions"
}
]
},
{
"name": {
"value": "libpdfbox2-java",
"evidence": "/affected/12/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.29-1",
"evidence": "/affected/12/versions"
}
]
},
{
"name": {
"value": "libpdfbox-java",
"evidence": "/affected/13/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:1.8.16-5",
"evidence": "/affected/13/versions"
}
]
},
{
"name": {
"value": "libpdfbox2-java",
"evidence": "/affected/14/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.29-1",
"evidence": "/affected/14/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-23907",
"aliases": [
"UBUNTU-CVE-2026-23907"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox-java",
"purl": "pkg:deb/ubuntu/libpdfbox-java?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1:1.8.7+dfsg-1",
"1:1.8.10-1",
"1:1.8.10-2",
"1:1.8.11+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox-java",
"binary_version": "1:1.8.11+dfsg-1"
},
{
"binary_name": "libjempbox-java",
"binary_version": "1:1.8.11+dfsg-1"
},
{
"binary_name": "libpdfbox-java",
"binary_version": "1:1.8.11+dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox-java",
"purl": "pkg:deb/ubuntu/libpdfbox-java?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1:1.8.13-1",
"1:1.8.13-2",
"1:1.8.16-2~18.04"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox-java",
"binary_version": "1:1.8.16-2~18.04"
},
{
"binary_name": "libjempbox-java",
"binary_version": "1:1.8.16-2~18.04"
},
{
"binary_name": "libpdfbox-java",
"binary_version": "1:1.8.16-2~18.04"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox2-java",
"purl": "pkg:deb/ubuntu/libpdfbox2-java?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"2.0.7-1",
"2.0.8-1",
"2.0.8-2",
"2.0.9-1",
"2.0.13-2~18.04"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox2-java",
"binary_version": "2.0.13-2~18.04"
},
{
"binary_name": "libpdfbox2-java",
"binary_version": "2.0.13-2~18.04"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox-java",
"purl": "pkg:deb/ubuntu/libpdfbox-java?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1:1.8.16-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox-java",
"binary_version": "1:1.8.16-2"
},
{
"binary_name": "libjempbox-java",
"binary_version": "1:1.8.16-2"
},
{
"binary_name": "libpdfbox-java",
"binary_version": "1:1.8.16-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox2-java",
"purl": "pkg:deb/ubuntu/libpdfbox2-java?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.0.16-1",
"2.0.17-1",
"2.0.18-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox2-java",
"binary_version": "2.0.18-1"
},
{
"binary_name": "libpdfbox2-java",
"binary_version": "2.0.18-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox-java",
"purl": "pkg:deb/ubuntu/libpdfbox-java?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1:1.8.16-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox-java",
"binary_version": "1:1.8.16-2"
},
{
"binary_name": "libjempbox-java",
"binary_version": "1:1.8.16-2"
},
{
"binary_name": "libpdfbox-java",
"binary_version": "1:1.8.16-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox2-java",
"purl": "pkg:deb/ubuntu/libpdfbox2-java?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.0.23-1",
"2.0.24-2",
"2.0.25-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox2-java",
"binary_version": "2.0.25-1"
},
{
"binary_name": "libpdfbox2-java",
"binary_version": "2.0.25-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox-java",
"purl": "pkg:deb/ubuntu/libpdfbox-java?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1:1.8.16-4",
"1:1.8.16-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox-java",
"binary_version": "1:1.8.16-5"
},
{
"binary_name": "libjempbox-java",
"binary_version": "1:1.8.16-5"
},
{
"binary_name": "libpdfbox-java",
"binary_version": "1:1.8.16-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox2-java",
"purl": "pkg:deb/ubuntu/libpdfbox2-java?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.0.27-2",
"2.0.29-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox2-java",
"binary_version": "2.0.29-1"
},
{
"binary_name": "libpdfbox2-java",
"binary_version": "2.0.29-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox-java",
"purl": "pkg:deb/ubuntu/libpdfbox-java?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1:1.8.16-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox-java",
"binary_version": "1:1.8.16-5"
},
{
"binary_name": "libjempbox-java",
"binary_version": "1:1.8.16-5"
},
{
"binary_name": "libpdfbox-java",
"binary_version": "1:1.8.16-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox2-java",
"purl": "pkg:deb/ubuntu/libpdfbox2-java?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.0.29-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox2-java",
"binary_version": "2.0.29-1"
},
{
"binary_name": "libpdfbox2-java",
"binary_version": "2.0.29-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox-java",
"purl": "pkg:deb/ubuntu/libpdfbox-java?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1:1.8.16-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox-java",
"binary_version": "1:1.8.16-5"
},
{
"binary_name": "libjempbox-java",
"binary_version": "1:1.8.16-5"
},
{
"binary_name": "libpdfbox-java",
"binary_version": "1:1.8.16-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox2-java",
"purl": "pkg:deb/ubuntu/libpdfbox2-java?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.0.29-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox2-java",
"binary_version": "2.0.29-1"
},
{
"binary_name": "libpdfbox2-java",
"binary_version": "2.0.29-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox-java",
"purl": "pkg:deb/ubuntu/libpdfbox-java?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1:1.8.16-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox-java",
"binary_version": "1:1.8.16-5"
},
{
"binary_name": "libjempbox-java",
"binary_version": "1:1.8.16-5"
},
{
"binary_name": "libpdfbox-java",
"binary_version": "1:1.8.16-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libpdfbox2-java",
"purl": "pkg:deb/ubuntu/libpdfbox2-java?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.0.29-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-23907.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libfontbox2-java",
"binary_version": "2.0.29-1"
},
{
"binary_name": "libpdfbox2-java",
"binary_version": "2.0.29-1"
}
]
}
}
],
"modified": "2026-10-17T12:59:56.555138239Z",
"provider": "osv",
"upstream": [
"CVE-2026-23907"
],
"references": [
"https://ubuntu.com/security/CVE-2026-23907",
"https://www.cve.org/CVERecord?id=CVE-2026-23907"
]
},
"related_cves": [
{
"value": "CVE-2026-23907",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 360011,
"published_at": "2026-03-10T18:18:00+00:00"
}