Every CVE Search/ Get API key

CVE-2005-1142

Heap-based buffer overflow in the readpgm function in pnm.c for GOCR 0.40, when it is not using...

7.5 HighFix available

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.

Exploit likelihood

3.15%Down 1.5 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2005-1142
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2005-1142
Updated
2026-11-02
EUVDEUVD-2005-1145 No score

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.

Record
EUVD-2005-1145
Updated
2026-11-03
GitHub AdvisoriesGHSA-6f86-ff42-6g2f No score

Heap-based buffer overflow in the readpgm function in pnm.c for GOCR 0.40, when it is not using...

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.

Record
GHSA-6f86-ff42-6g2f
Updated
2026-11-02
OSV No score

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.

Record
CVE-2005-1142
Updated
2026-11-02
OSVDEBIAN-CVE-2005-1142 No score

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.

Record
DEBIAN-CVE-2005-1142
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
gocr
Debian:12
before 0.39-5
0.39-5
gocr
Debian:13
before 0.39-5
0.39-5
gocr
Debian:14
before 0.39-5
0.39-5

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2005-1142 is a high vulnerability (CVSS 7.5) in Gocr Optical Character Recognition Utility, published April 15, 2005. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.15%, the 87th percentile. Fixed in gocr 0.39-5.

References

MoveEnter Open