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
- Leptonica
- Debian Debian_linux — versions 7.0
- N/a — versions n/a
Weakness classification (CWE)
References
- cve@mitre.org (mailing-list, Mailing List, Third Party Advisory)
- cve@mitre.org (Patch, Third Party Advisory)
- cve@mitre.org (Third Party Advisory)
- cve@mitre.org (Mailing List, Third Party Advisory)
- cve@mitre.org (vendor-advisory)
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.