PT-2005-2157 · Gocr+1 · Gocr+1
Published
2005-04-15
·
Updated
2024-02-08
·
CVE-2005-1141
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
GOCR version 0.40
Description
The issue is related to an integer overflow in the readpgm function in pnm.c, which occurs when using the netpbm library. This allows remote attackers to execute arbitrary code via a PNM file with large width and height values, leading to a heap-based buffer overflow.
Recommendations
For GOCR version 0.40, consider disabling the readpgm function in pnm.c as a temporary workaround until a patch is available. Restrict access to PNM files with large width and height values to minimize the risk of exploitation.
Exploit
Fix
Integer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gocr
Netpbm