{"id":"DEBIAN-CVE-2005-1142","details":"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.","modified":"2026-09-08T06:47:33.601438423Z","published":"2005-04-15T04:00:00Z","upstream":["CVE-2005-1142"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2005-1142"}],"affected":[{"package":{"name":"gocr","ecosystem":"Debian:12","purl":"pkg:deb/debian/gocr?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.39-5"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2005-1142.json"}},{"package":{"name":"gocr","ecosystem":"Debian:13","purl":"pkg:deb/debian/gocr?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.39-5"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2005-1142.json"}},{"package":{"name":"gocr","ecosystem":"Debian:14","purl":"pkg:deb/debian/gocr?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.39-5"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2005-1142.json"}}],"schema_version":"1.9.0"}