CVE Vulnerabilities

CVE-2021-31811

Memory Allocation with Excessive Size Value

Published: Jun 12, 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
LOW
root.io logo minimus.io logo echo.ai logo

In Apache PDFBox, a carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file. This issue affects Apache PDFBox version 2.0.23 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.23 (including)
Red Hat IntegrationRedHatpdfbox*
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-javaUbuntufocal*
Libpdfbox2-javaUbuntugroovy*
Libpdfbox2-javaUbuntuhirsute*
Libpdfbox2-javaUbuntuimpish*
Libpdfbox2-javaUbuntukinetic*
Libpdfbox2-javaUbuntulunar*
Libpdfbox2-javaUbuntumantic*
Libpdfbox2-javaUbuntuoracular*
Libpdfbox2-javaUbuntuplucky*
Libpdfbox2-javaUbuntutrusty*
Libpdfbox2-javaUbuntuxenial*

Potential Mitigations

References