CVE-2021-33391
published 2023-02-17CVE-2021-33391: 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.
PriorityP347critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
1.13%
62.7th percentile
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.
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | tidy-html5 | < tidy-html5 2:5.8.0-2 (forky) | tidy-html5 2:5.8.0-2 (forky) |
| htacg | tidy | — | — |
| htacg | tidy-html5 | >= 0 < 2:5.8.0-2 | 2:5.8.0-2 |
| htacg | tidy-html5 | >= 0 < 2:5.8.0-2 | 2:5.8.0-2 |
| msrc | azl3_tidy_5.8.0-6_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_msrc9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
HTML Tidy vulnerability
vendor_ubuntu·2023-11-15
CVE-2021-33391 HTML Tidy vulnerability
Title: HTML Tidy vulnerability
Summary: tidy-html5 could be made to crash or run programs if it opened a specially
crafted file.
Neeraj Pal discovered that HTML Tidy incorrectly handled parsing certain
HTML data. If a user or automated system were tricked into parsing
specially crafted HTML data, a remote attacker could cause HTML Tidy to
consume resources, leading to a denial of service, or possibly execute
arbitrary code.
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
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.
vendor_msrc·2023-02-14·CVSS 9.8
CVE-2021-33391 [CRITICAL] CWE-416 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.
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
mitre: mitre
Customer Ac
Debian
CVE-2021-33391: tidy-html5 - An issue in HTACG HTML Tidy v5.7.28 allows attacker to execute arbitrary code vi...
vendor_debian·2021·CVSS 9.8
CVE-2021-33391 [CRITICAL] CVE-2021-33391: tidy-html5 - An issue in HTACG HTML Tidy v5.7.28 allows attacker to execute arbitrary code vi...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 2:5.8.0-2)
sid: resolved (fixed in 2:5.8.0-2)
trixie: resolved (fixed in 2:5.8.0-2)
GHSA
GHSA-wfrp-xv2m-8j85: An issue in HTACG HTML Tidy v5
ghsa_unreviewed·2023-02-17
CVE-2021-33391 [CRITICAL] CWE-416 GHSA-wfrp-xv2m-8j85: An issue in HTACG HTML Tidy v5
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.
OSV
CVE-2021-33391: An issue in HTACG HTML Tidy v5
osv·2023-02-17·CVSS 9.8
CVE-2021-33391 [CRITICAL] CVE-2021-33391: An issue in HTACG HTML Tidy v5
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2023-02-17
Published