Improper Access Control Affecting leptonica package, versions [0,1.75)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (35th 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 Improper Access Control vulnerabilities in an interactive lesson.

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

Introduced: 23 Feb 2018

CVE-2017-18196  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade leptonica to version 1.75 or higher.

Overview

Affected versions of this package are vulnerable to Improper Access Control. Leptonica 1.74.4 constructs unintended pathnames (containing duplicated path components) when operating on files in /tmp subdirectories, which might allow local users to bypass intended file restrictions by leveraging access to a directory located deeper within the /tmp directory tree, as demonstrated by /tmp/ANY/PATH/ANY/PATH/input.tif.

References

CVSS Base Scores

version 3.1