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

EPSS: 0.034 (87.6th percentile) — read the EPSS interpretation.

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.

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.