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 over last 30 days · oldest: 0.034 · newest: 0.034 · change: 0.000
Affected products
- Leptonica
- Debian Linux — versions 7.0
Weakness classification (CWE)
References
- lists.debian.org/debian-lts-announce/2018/03/msg00005.html (mailing-list, Mailing List, Third Party Advisory)
- github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e9… (Patch, Third Party Advisory)
- bugs.debian.org/890548 (Third Party Advisory)
- lists.debian.org/debian-lts/2018/02/msg00054.html (Mailing List, Third Party Advisory)
- security.gentoo.org/glsa/202312-01 (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.