CVE-2018-7186

NameCVE-2018-7186
DescriptionLeptonica 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1302-1, ELA-764-1, ELA-765-1
Debian Bugs890548

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
leptonlib (PTS)jessie, jessie (lts)1.71-2.1+deb8u2fixed
stretch (security)1.74.1-1+deb9u1vulnerable
stretch (lts), stretch1.74.1-1+deb9u2fixed
buster1.76.0-1+deb10u1fixed
buster (security)1.76.0-1+deb10u2fixed
bullseye1.79.0-1.1+deb11u1fixed
sid, trixie, bookworm1.82.0-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
leptonlibsourcewheezy1.69-3.1+deb7u2DLA-1302-1
leptonlibsourcejessie1.71-2.1+deb8u2ELA-765-1
leptonlibsourcestretch1.74.1-1+deb9u2ELA-764-1
leptonlibsource(unstable)1.75.3-2low890548

Notes

https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99a

Search for package or bug name: Reporting problems