Memory corruption in gocr
Priority LOW 37CWE-119Published · Updated
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 try_to_divide_boxes() in pgm2asc.c.
Why it matters now
EPSS 0.01222 68th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix No fix listed No fixed version in the sources yet
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
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-12883 Memory corruption in gocrPriority LOW 39
- 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-33481
- 2026-10-03 Alias added: GHSA-wgmm-j5vp-vhxr
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-12883 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-33481 · CVE Program
- CVE-2021-33481 · NVD
- FIRST EPSS
- GHSA-wgmm-j5vp-vhxr · GitHub Advisory Database · CC BY 4.0
- CVE-2021-33481 · 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