CVE-2005-1142 Memory corruption in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary code via a malicious PNM file in GOCR when netpbm is not used, requiring user interaction to open the file.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2005-1142?

CVE-2005-1142 is a high-severity memory corruption vulnerability in n/a, published on 16 Apr 2005. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Which versions are affected by CVE-2005-1142?

It affects 1 product.

Products include Gocr Optical Character Recognition Utility.

How do I fix CVE-2005-1142?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2005-1142 being exploited?

There is no known exploitation of CVE-2005-1142 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2005-1142, GHSA-6f86-ff42-6g2f.

Is CVE-2005-1142 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free