CVE-2018-7186 json
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 2018-02-16 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-18928
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.4%
- EPSS 3.4% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- leptonica leptonica 1.75.3
- leptonlib Debian 14, Debian 13, Debian 12 1.75.3-2
debian advisories DEBIAN-CVE-2018-7186
- leptonlib Ubuntu Pro 14.04 LTS 1.70.1-1ubuntu0.1~esm1
- leptonlib Ubuntu Pro 16.04 LTS 1.73-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2018-7186
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- leptonica openSUSE Tumbleweed 1.80.0-1.9
opensuse advisories openSUSE-SU-2024:10914-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-7186 updated cvss 3.3
leptonica: Stack-based buffer overflows in gplotRead() and ptaReadStream() when parsing crafted files can lead to denial of service
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.40% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
github.com
/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99a
patch, third-party-advisory
-
security.gentoo.org
/glsa/202312-01
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2018/03/msg00005.html
mailing-list, third-party-advisory
-
bugs.debian.org
/890548
third-party-advisory
-
lists.debian.org
/debian-lts/2018/02/msg00054.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2018-7186
- NVD CVE-2018-7186
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.