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

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

Name Vendor Start Version End Version
Qpdf Qpdf_project 10.0.4 (including) 10.0.4 (including)
Qpdf Ubuntu bionic *
Qpdf Ubuntu esm-infra/bionic *
Qpdf Ubuntu esm-infra/focal *
Qpdf Ubuntu esm-infra/xenial *
Qpdf Ubuntu focal *
Qpdf Ubuntu trusty *
Qpdf Ubuntu upstream *
Qpdf Ubuntu xenial *

Potential Mitigations

References