Memory corruption in gocr
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-119 and the CVSS impact.
Summary
A stack-based buffer overflow vulnerability was discovered in gocr through 0.53-20200802 in measure_pitch() in pgm2asc.c.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | gocr | gocr 0.53-20200802 | — | No fix listed | CNA |
- gocr Vendor— Affected gocr 0.53-20200802 Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:optical_character_recognition_project:optical_character_recognition:*:*:*:*:*:*:*:* | up to 0.53-20200802 | Vulnerable | Optical Character Recognition Project |
- cpe:2.3:a:optical_character_recognition_project:optical_character_recognition:*:*:*:*:*:*:*:* Versions up to 0.53-20200802 Vulnerable ·Optical Character Recognition Project
Remediation
No fixed version listed by the sources yet.
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
gocr — GLSA-202401-28
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2021-12885 Memory corruption in gocrPriority LOW 37
- TI-2021-12884 An use-after-free vulnerability was discovered in gocr through 0.53-20200802 in context_correction() in pgm2asc.c.Priority LOW 27
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2021-33479
- 2026-10-03 Alias added: GHSA-cfqc-x96c-8xxg
References
More Optical Character Recognition Project Optical Character Recognition vulnerabilities
- TI-2005-01079 Integer overflow in the readpgm function in pnm.c for GOCR 0.40, when using the netpbm… CVSS 3.1CRITICAL 9.8
- TI-2021-12885 Memory corruption in gocr CVSS 3.1HIGH 7.8
- TI-2021-12884 An use-after-free vulnerability was discovered in gocr through 0.53-20200802 in context_correction() in pgm2asc.c. CVSS 3.1MEDIUM 5.5
Sources
- CVE-2021-33479 · CVE Program
- CVE-2021-33479 · NVD
- FIRST EPSS
- GHSA-cfqc-x96c-8xxg · GitHub Advisory Database · CC BY 4.0
- CVE-2021-33479 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences