Arbitrary code execution via pitch-array underflow
Published Nov 17, 2021 · Updated Nov 18, 2024
Stack buffer underflow in GOCR through 0.53-20200802 allows context-dependent attackers to execute arbitrary code via a crafted image. In pgm2asc.c, measure_pitch() reads four bytes before the stack-allocated pdists array while parsing the reproducer. The target must process attacker-supplied image data; the public reproducer demonstrates an AddressSanitizer-detected process abort.
Summary
What happened
Stack buffer underflow in GOCR through 0.53-20200802 allows context-dependent attackers to execute arbitrary code via a crafted image. In pgm2asc.c, measure_pitch() reads four bytes before the stack-allocated pdists array while parsing the reproducer. The target must process attacker-supplied image data; the public reproducer demonstrates an AddressSanitizer-detected process abort.
The record
- CVE
- CVE-2021-33479
- Published
- Nov 17, 2021
- Updated
- Nov 18, 2024
- Vendor
- GOCR Project
- Product
- GOCR
- Classifications
- CWE-787, CWE-119, T1203
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 17, 2021CVE publishedPublication date reported by the CVE source.
- Nov 18, 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=gocr 0.53-20200802
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
- A stack-buffer-underflow in pgm2asc.c:1689:24proof 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