Live threats

All CVEs / Leptonica

CVE-2018-7186Leptonica

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
3.4%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Feb 16, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-787
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Leptonica.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
leptonicaleptonica< 1.75.3
debiandebian_linux7.0

Official sources

References

Links published by the sources. Open them with care.