{"id":"CVE-2005-1142","aliases":["DEBIAN-CVE-2005-1142","EUVD-2005-1145","GHSA-6f86-ff42-6g2f"],"status":"published","title":"Heap-based buffer overflow in the readpgm function in pnm.c for GOCR 0.40, when it is not using...","description":"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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.03145,"percentile":0.88008,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2005-04-15T04:00:00Z","modified":"2026-10-23T03:47:37Z","fixes":[{"ecosystem":"Debian:12","package":"gocr","fixed_in":["0.39-5"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"gocr","fixed_in":["0.39-5"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"gocr","fixed_in":["0.39-5"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"gocr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.39-5"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"gocr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.39-5"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"gocr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.39-5"}]}]}],"products":[{"vendor":"gocr","product":"optical_character_recognition_utility"}],"references":[{"url":"http://marc.info/?l=bugtraq\u0026m=111358557823673\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"http://www.overflow.pl/adv/gocr.txt","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","advisory","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-1142"},{"url":"https://github.com/advisories/GHSA-6f86-ff42-6g2f"},{"url":"https://security-tracker.debian.org/tracker/CVE-2005-1142","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2005-1142","description":"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.","status":"published","published":"2005-04-16T04:00:00Z","modified":"2024-08-07T21:35:59.969Z","updated_at":"2026-11-02T14:33:39.586409Z"}],"euvd":[{"id":"EUVD-2005-1145","description":"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.","status":"published","published":"2005-04-16T04:00:00Z","modified":"2024-08-07T21:35:59Z","updated_at":"2026-11-03T01:15:35.414401Z"}],"ghsa":[{"id":"GHSA-6f86-ff42-6g2f","title":"Heap-based buffer overflow in the readpgm function in pnm.c for GOCR 0.40, when it is not using...","description":"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.","status":"published","published":"2022-05-01T01:55:59Z","modified":"2023-01-30T05:06:39Z","updated_at":"2026-11-02T14:47:32.377793Z"}],"nvd":[{"id":"CVE-2005-1142","description":"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.","status":"published","published":"2005-04-15T04:00:00Z","modified":"2026-06-16T22:12:31.537Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:00:54.594271Z"}],"osv":[{"id":"CVE-2005-1142","description":"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.","status":"published","published":"2005-04-15T04:00:00Z","modified":"2026-04-10T03:37:01.615971Z","updated_at":"2026-11-02T15:43:56.315348Z"},{"id":"DEBIAN-CVE-2005-1142","description":"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.","status":"published","published":"2005-04-15T04:00:00Z","modified":"2026-10-23T03:47:37.121089334Z","updated_at":"2026-11-02T15:45:22.831407Z"}]}}
