CVE & CISA-KEV Catalog

CVE-2018-7186

CRITICALEPSS 88th pctl
9.8
CVSS v3
NVD

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.

How to fix

Remediation Available
leptonlibDebian
Fixed in:1.75.3-2CVE-2018-7186
Fixed in:1.75.3-2CVE-2018-7186
Fixed in:1.75.3-2CVE-2018-7186
Fixed in:1.75.3-2CVE-2018-7186
leptonlibUbuntu
Fixed in:1.70.1-1ubuntu0.1~esm1USN-4819-1
Fixed in:1.73-1ubuntu0.1~esm1USN-4819-1
liblept4Ubuntu
Fixed in:1.70.1-1ubuntu0.1~esm1USN-4819-1
liblept5Ubuntu
Fixed in:1.73-1ubuntu0.1~esm1USN-4819-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

3.47%probability of exploitation in 30 days
88thpercentile

Elevated risk: more likely to be exploited than 88% of all known CVEs.

References

Related Vulnerabilities

Other CWE-787 (Out-of-bounds Write) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-22457Critical9.0100%KEV + RansomFix
CVE-2025-0282Critical9.0100%KEV + Ransom-
CVE-2015-3113Critical9.8100%KEVFix
CVE-2021-20038Critical9.8100%KEV + Ransom-
CVE-2023-4863High8.8100%KEVFix
CVE-2020-16040Medium6.5100%-Fix
Embed a live status badge for CVE-2018-7186
CVE-2018-7186 severity badge

Markdown

[![CVE-2018-7186](https://tridentstack.com/cve/badge/CVE-2018-7186.svg)](https://tridentstack.com/cve/CVE-2018-7186)

HTML

<a href="https://tridentstack.com/cve/CVE-2018-7186"><img src="https://tridentstack.com/cve/badge/CVE-2018-7186.svg" alt="CVE-2018-7186"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.