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, 89.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Leptonica
- Debian Linux — versions 7.0
Weakness classification (CWE)
References
- [debian-lts-announce] 20180307 [SECURITY] [DLA 1302-1] leptonlib security update (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)
- GLSA-202312-01 (vendor-advisory)