CVE-2005-1142Gocr Optical Character Recognition Utility
High 7.5 No auth needed
Follow: this CVE · Gocr · Gocr Optical Character Recognition Utility We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 2.0
- 7.5
- EPSS
- 3.1% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Apr 15, 2005
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
What happens
Heap-based buffer overflow in the readpgm function in pnm.c for GOCR 0.40, when it is not using netpbm, allows remote attackers to execute arbitrary code via a P3 format PNM file with more data than implied by its width and height values.
What to do
- Apply the vendor's security update for Optical Character Recognition Utility.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gocr | optical_character_recognition_utility | 0.3.2 |
| gocr | optical_character_recognition_utility | 0.3.4 |
| gocr | optical_character_recognition_utility | 0.37 |
| gocr | optical_character_recognition_utility | 0.39 |
| gocr | optical_character_recognition_utility | 0.40 |
Official sources
References
Links published by the sources. Open them with care.
- marc.info
- www.overflow.pl Exploit Vendor Advisory