Directory Traversal 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
2% (80th 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 Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-LEPTONICA-2370257
  • published26 Jan 2022
  • disclosed23 Feb 2018
  • creditUnknown

Introduced: 23 Feb 2018

CVE-2018-7442  (opens in a new tab)
CWE-22  (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 Directory Traversal. An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.

References

CVSS Base Scores

version 3.1