CVE Vulnerabilities

CVE-2021-33391

Use After Free

Published: Feb 17, 2023 | Modified: Mar 18, 2025
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

An issue in HTACG HTML Tidy v5.7.28 allows attacker to execute arbitrary code via the -g option of the CleanNode() function in gdoc.c.

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
Tidy Htacg 5.7.28 (including) 5.7.28 (including)
Tidy-html5 Ubuntu bionic *
Tidy-html5 Ubuntu devel *
Tidy-html5 Ubuntu esm-infra/bionic *
Tidy-html5 Ubuntu esm-infra/focal *
Tidy-html5 Ubuntu focal *
Tidy-html5 Ubuntu jammy *
Tidy-html5 Ubuntu kinetic *
Tidy-html5 Ubuntu lunar *
Tidy-html5 Ubuntu mantic *
Tidy-html5 Ubuntu noble *
Tidy-html5 Ubuntu oracular *
Tidy-html5 Ubuntu plucky *
Tidy-html5 Ubuntu trusty *
Tidy-html5 Ubuntu xenial *

Potential Mitigations

References