Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2018-7186

Leptonica before 1.75.3 does not limit the number of characters in a % ...

Overview

Published
16 Feb 2018
Modified
17 Jun 2026
Critical CVE
0 Registry packages
5 OS packages
3 Linux distributions
Yes Fix available

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: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.0 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Weakness: CWE-787

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 6 fixes

debian 4 releases · 1 package

fixed 4
leptonlib
debian fixes for CVE-2018-7186
ReleasePackageFixed in
11 leptonlib 1.75.3-2
12 leptonlib 1.75.3-2
13 leptonlib 1.75.3-2
14 leptonlib 1.75.3-2

echo 1 release · 1 package

fixed 1
leptonlib
echo fixes for CVE-2018-7186
ReleasePackageFixed in
leptonlib 1.75.3-2

openSUSE 1 release · 1 package

fixed 1
leptonica-devel
openSUSE fixes for CVE-2018-7186
ReleasePackageFixed inAdvisory
Tumbleweed leptonica-devel +3 1.80.0-1.9 openSUSE-SU-2024:10914-1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.