CVE Catalog

CVE-2005-1142

High
Published: Translated: NVD NIST

Summary

In GOCR 0.40, a heap-based buffer overflow in the readpgm function in pnm.c allows remote attackers to execute arbitrary code via a specially crafted P3 format PNM file containing more data than implied by its width and height values.

Risk Assessment

An attacker can remotely execute arbitrary code on the victim's system, leading to full compromise of the application and potentially the entire system.

Recommendation

Update GOCR to the latest available version that includes a fix for this vulnerability, or apply a security patch from the vendor.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS