CVE Vulnerabilities

CVE-2021-25786

Use After Free

Published: Aug 11, 2023 | Modified: Nov 21, 2024
CVSS 3.x
5.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
CVSS 2.x
RedHat/V2
RedHat/V3
5.3 MODERATE
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

An issue was discovered in QPDF version 10.0.4, allows remote attackers to execute arbitrary code via crafted .pdf file to Pl_ASCII85Decoder::write parameter in libqpdf.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
QpdfQpdf_project10.0.4 (including)10.0.4 (including)
QpdfUbuntubionic*
QpdfUbuntuesm-infra/bionic*
QpdfUbuntuesm-infra/focal*
QpdfUbuntuesm-infra/xenial*
QpdfUbuntufocal*
QpdfUbuntutrusty*
QpdfUbuntuupstream*
QpdfUbuntuxenial*

Potential Mitigations

References