Description
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.
References (5)
Core 5
Core References
Third Party Advisory
https://bugs.debian.org/890548
Patch, Third Party Advisory
https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99a
Mailing List, Third Party Advisory
https://lists.debian.org/debian-lts/2018/02/msg00054.html
Mailing List, Third Party Advisory mailing-list
https://lists.debian.org/debian-lts-announce/2018/03/msg00005.html
Third Party Advisory vendor-advisory
https://security.gentoo.org/glsa/202312-01
Scores
CVSS v3
9.8
EPSS
0.0312
EPSS Percentile
86.9%
Attack Vector
NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-787
Status
published
Products (2)
debian/debian_linux
7.0
leptonica/leptonica
< 1.75.3
Published
Feb 16, 2018
Tracked Since
Feb 18, 2026