Arbitrary Command Injection Affecting leptonica package, versions [,1.76.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
3.74% (90th 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-UNMANAGED-LEPTONICA-2370256
  • published26 Jan 2022
  • disclosed23 Feb 2018
  • creditUnknown

Introduced: 23 Feb 2018

CVE-2018-7440  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade leptonica to version 1.76.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Injection. An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.

References

CVSS Base Scores

version 3.1