CVE-2018-7186 Memory corruption in n/a
A stack-based buffer overflow in Leptonica allows remote attackers to cause denial of service or potentially execute code via crafted input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-7186?
CVE-2018-7186 is a critical memory corruption vulnerability in Debian Debian Linux, published on 16 Feb 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Leptonica before 1.75.3 does not limit the number of characters in a %s format argument to fscanf or sscanf, which allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a long string, as demonstrated by the gplotRead and ptaReadStream functions.
Weakness: CWE-787
Which versions are affected by CVE-2018-7186?
It affects 2 products.
Products include Debian Debian Linux, Leptonica Leptonica.
How do I fix CVE-2018-7186?
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-2018-7186 being exploited?
There is no known exploitation of CVE-2018-7186 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2018-7186, GHSA-hx3c-v527-xcjq, UBUNTU-CVE-2018-7186.