Name | CVE-2018-7186 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-1302-1, ELA-764-1, ELA-765-1 |
Debian Bugs | 890548 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
leptonlib (PTS) | jessie, jessie (lts) | 1.71-2.1+deb8u2 | fixed |
stretch (security) | 1.74.1-1+deb9u1 | vulnerable | |
stretch (lts), stretch | 1.74.1-1+deb9u2 | fixed | |
buster (security), buster, buster (lts) | 1.76.0-1+deb10u2 | fixed | |
bullseye | 1.79.0-1.1+deb11u1 | fixed | |
bookworm | 1.82.0-3 | fixed | |
sid, trixie | 1.84.1-4 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
leptonlib | source | wheezy | 1.69-3.1+deb7u2 | DLA-1302-1 | ||
leptonlib | source | jessie | 1.71-2.1+deb8u2 | ELA-765-1 | ||
leptonlib | source | stretch | 1.74.1-1+deb9u2 | ELA-764-1 | ||
leptonlib | source | (unstable) | 1.75.3-2 | low | 890548 |
https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99a