# CVE-2021-33391: tidy: An issue in HTACG HTML Tidy v5.7.28 allows attacker to execute arbitrarycode via the -g option of the CleanNode() fun...

CVE-2021-33391 is fixed in 4 products on 1 platform, first by libtidy5deb1 2:5.6.0-11ubuntu0.20.04.1, released February 17, 2023. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-33391
- Priority: High
- CVSS: 9.8 (Medium)
- EPSS: 0.0113
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 17, 2023

## Description

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libtidy58 Ubuntu 25.04 (plucky) | 2:5.6.0-11ubuntu1 | [libtidy58 2:5.6.0-11ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libtidy58-2-5.6.0-11ubuntu1.md) | Jan 16, 2026 |
| Linux | libtidy5deb1 Ubuntu 20.04 LTS (focal) | 2:5.6.0-11ubuntu0.20.04.1 | [libtidy5deb1 2:5.6.0-11ubuntu0.20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libtidy5deb1-2-5.6.0-11ubuntu0.20.04.1.md) | Feb 17, 2023 |
| Linux | libtidy5deb1 Ubuntu 22.04.1 LTS (jammy) | 2:5.6.0-11ubuntu0.22.04.1 | [libtidy5deb1 2:5.6.0-11ubuntu0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libtidy5deb1-2-5.6.0-11ubuntu0.22.04.1.md) | Feb 17, 2023 |
| Linux | libtidy5deb1 Ubuntu 24.04.5 LTS (noble) | 2:5.6.0-11ubuntu1 | [libtidy5deb1 2:5.6.0-11ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libtidy5deb1-2-5.6.0-11ubuntu1.md) | Feb 17, 2023 |
| Linux | libtidy5deb1 Ubuntu 24.10 (oracular) | 2:5.6.0-11ubuntu1 | [libtidy5deb1 2:5.6.0-11ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libtidy5deb1-2-5.6.0-11ubuntu1.md) | Jan 16, 2026 |
| Linux | tidy Ubuntu 20.04 LTS (focal) | 2:5.6.0-11ubuntu0.20.04.1 | [tidy 2:5.6.0-11ubuntu0.20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-tidy-2-5.6.0-11ubuntu0.20.04.1.md) | Feb 17, 2023 |
| Linux | tidy Ubuntu 22.04.1 LTS (jammy) | 2:5.6.0-11ubuntu0.22.04.1 | [tidy 2:5.6.0-11ubuntu0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-tidy-2-5.6.0-11ubuntu0.22.04.1.md) | Feb 17, 2023 |
| Linux | tidy Ubuntu 24.04.5 LTS (noble) | 2:5.6.0-11ubuntu1 | [tidy 2:5.6.0-11ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-tidy-2-5.6.0-11ubuntu1.md) | Feb 17, 2023 |
| Linux | tidy Ubuntu 24.10 (oracular) | 2:5.6.0-11ubuntu1 | [tidy 2:5.6.0-11ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-tidy-2-5.6.0-11ubuntu1.md) | Jan 16, 2026 |
| Linux | tidy Ubuntu 25.04 (plucky) | 2:5.6.0-11ubuntu1 | [tidy 2:5.6.0-11ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-tidy-2-5.6.0-11ubuntu1.md) | Jan 16, 2026 |
| Linux | tidy-html5 Debian 13.5 (trixie) | 2:5.8.0-2 | [DEBIAN-CVE-2021-33391](https://patchblox.com/security/data/fix/linux/debian-cve-2021-33391.md) | Feb 17, 2023 |
| Linux | tidy-html5 Debian 14 | 2:5.8.0-2 | [DEBIAN-CVE-2021-33391](https://patchblox.com/security/data/fix/linux/debian-cve-2021-33391.md) | Feb 17, 2023 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
