Code execution via unbounded table COLSPAN
Published Mar 2, 2022 · Updated Aug 3, 2024
Stack-based buffer overflow in HTMLDOC before 1.9.12 allows local users to execute code by inducing processing of crafted HTML. The parse_table() function converts a COLSPAN attribute without bounding it to the remaining columns, then indexes fixed-size column arrays with that value. A user or document-processing workflow must open or convert attacker-supplied HTML; a successful trigger can crash the process or run code with its privileges.
Summary
What happened
Stack-based buffer overflow in HTMLDOC before 1.9.12 allows local users to execute code by inducing processing of crafted HTML. The parse_table() function converts a COLSPAN attribute without bounding it to the remaining columns, then indexes fixed-size column arrays with that value. A user or document-processing workflow must open or convert attacker-supplied HTML; a successful trigger can crash the process or run code with its privileges.
The record
- CVE
- CVE-2021-23206
- Published
- Mar 2, 2022
- Updated
- Aug 3, 2024
- Vendor
- HTMLDOC Project
- Product
- HTMLDOC
- Classifications
- CWE-121, T1203
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 2, 2022CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=Affects v1.9.12 and prior, Fixed in v1.9.12+
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- HTMLDOC issue 416 proof-of-concept documentproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo