CVE Vulnerabilities

CVE-2021-27906

Memory Allocation with Excessive Size Value

Published: Mar 19, 2021 | Modified: Nov 21, 2024
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
5.5 LOW
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file. This issue affects Apache PDFBox version 2.0.22 and prior 2.0.x versions.

Weakness

The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.

Affected Software

NameVendorStart VersionEnd Version
PdfboxApache2.0.0 (including)2.0.22 (including)
Red Hat Fuse 7.9RedHatpdfbox*
Red Hat IntegrationRedHat*
Libpdfbox-javaUbuntubionic*
Libpdfbox-javaUbuntufocal*
Libpdfbox-javaUbuntugroovy*
Libpdfbox-javaUbuntuhirsute*
Libpdfbox-javaUbuntuimpish*
Libpdfbox-javaUbuntukinetic*
Libpdfbox-javaUbuntulunar*
Libpdfbox-javaUbuntumantic*
Libpdfbox-javaUbuntuoracular*
Libpdfbox-javaUbuntuplucky*
Libpdfbox-javaUbuntutrusty*
Libpdfbox-javaUbuntuxenial*
Libpdfbox2-javaUbuntubionic*
Libpdfbox2-javaUbuntuesm-apps/bionic*
Libpdfbox2-javaUbuntuesm-apps/focal*
Libpdfbox2-javaUbuntufocal*
Libpdfbox2-javaUbuntugroovy*
Libpdfbox2-javaUbuntuhirsute*
Libpdfbox2-javaUbuntuimpish*
Libpdfbox2-javaUbuntukinetic*
Libpdfbox2-javaUbuntulunar*
Libpdfbox2-javaUbuntumantic*
Libpdfbox2-javaUbuntuoracular*
Libpdfbox2-javaUbuntuplucky*
Libpdfbox2-javaUbuntutrusty*

Potential Mitigations

References