Out-of-bounds Write Affecting leptonlib package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.23% (86th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1604-LEPTONLIB-344154
  • published16 Feb 2018
  • disclosed16 Feb 2018

Introduced: 16 Feb 2018

CVE-2018-7186  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:16.04 leptonlib.

NVD Description

Note: Versions mentioned in the description apply only to the upstream leptonlib package and not the leptonlib package as distributed by Ubuntu. See How to fix? for Ubuntu:16.04 relevant fixed versions and status.

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.