Application crash via undersized GIF mask buffer
Published Nov 14, 2022 · Updated Apr 25, 2025
Heap buffer overflow in HTMLDOC before 1.9.15 allows attackers to crash the application by processing a crafted GIF image. image_load_gif changes the image dimensions after image_need_mask allocates img->mask, so image_set_mask computes a pointer beyond the allocation and writes through it. Processing an attacker-supplied HTML document and its GIF is required, and the demonstrated consequence is an application crash.
Summary
What happened
Heap buffer overflow in HTMLDOC before 1.9.15 allows attackers to crash the application by processing a crafted GIF image. image_load_gif changes the image dimensions after image_need_mask allocates img->mask, so image_set_mask computes a pointer beyond the allocation and writes through it. Processing an attacker-supplied HTML document and its GIF is required, and the demonstrated consequence is an application crash.
The record
- CVE
- CVE-2022-0137
- Published
- Nov 14, 2022
- Updated
- Apr 25, 2025
- Vendor
- HTMLDOC Project
- Product
- HTMLDOC
- Classifications
- CWE-787, CWE-119, T1204.002
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 14, 2022CVE publishedPublication date reported by the CVE source.
- Apr 25, 2025Record 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=1.9.14
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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
- Issue 461 poc.zip reproductionproof 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