Skip to content
OpenAdvisories
Unscored CVE-2018-7186 EUVD-2018-18928GHSA-hx3c-v527-xcjq

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 …

Published Feb 16, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 leptonlib 1.75.3-2 —
Debian 13 leptonlib 1.75.3-2 —
Debian 12 leptonlib 1.75.3-2 —
Debian 7 leptonlib 1.69-3.1+deb7u2 DLA-1302-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS leptonlib 1.73-1ubuntu0.1~esm1 USN-4819-1
Ubuntu Pro 14.04 LTS leptonlib 1.70.1-1ubuntu0.1~esm1 USN-4819-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed leptonica 1.80.0-1.9 openSUSE-SU-2024:10914-1

Advisories 3

References