Buffer overflow in Leptonica

CVE-2018-7186

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.

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.034 (88.4th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 88th percentile — 88.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2018-7186: held from 0.034 to 0.034.

EPSS over last 30 days · oldest: 0.034 · newest: 0.034 · change: 0.000

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2018-7186?
CVE-2018-7186 is a critical-severity vulnerability in Leptonica, classified under Out-of-bounds Write. CVSS score: 9.8/10. Published 2018-02-16.
How severe is CVE-2018-7186?
Critical severity. CVSS v3 base score is 9.8 out of 10.