Command Injection Affecting leptonica package, versions [,1.75.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.43% (72nd 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-2370262
  • published26 Jan 2022
  • disclosed24 Apr 2018
  • creditUnknown

Introduced: 24 Apr 2018

CVE-2018-3836  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade leptonica to version 1.75.3 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection. An exploitable command injection vulnerability exists in the gplotMakeOutput function of Leptonica 1.74.4. A specially crafted gplot rootname argument can cause a command injection resulting in arbitrary code execution. An attacker can provide a malicious path as input to an application that passes attacker data to this function to trigger this vulnerability.

CVSS Base Scores

version 3.1