Integer overflow in the readpgm function in pnm.c for GOCR 0.40, when using the netpbm…
Priority MEDIUM 48CWE-190Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- 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-190 and the CVSS impact.
Summary
Integer overflow in the readpgm function in pnm.c for GOCR 0.40, when using the netpbm library, allows remote attackers to execute arbitrary code via a PNM file with large width and height values, which leads to a heap-based buffer overflow.
Why it matters now
EPSS 0.03377 88th 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 |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions 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:0.40:*:*:*:*:*:*:* | 0.40 | Vulnerable | Optical Character Recognition Project |
- cpe:2.3:a:optical_character_recognition_project:optical_character_recognition:0.40:*:*:*:*:*:*:* Versions 0.40 Vulnerable ·Optical Character Recognition Project
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2005-1141
- 2026-10-03 Alias added: GHSA-ghqg-gfm6-qhh6
References
More Optical Character Recognition Project Optical Character Recognition vulnerabilities
- TI-2021-12883 Memory corruption in gocr CVSS 3.1HIGH 7.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-2005-1141 · CVE Program
- CVE-2005-1141 · NVD
- FIRST EPSS
- GHSA-ghqg-gfm6-qhh6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences