Directory Traversal Affecting leptonlib package, versions <1.74.4-2


Severity

Recommended
0.0
low
0
10

Based on Debian security rating.

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 IDSNYK-DEBIAN14-LEPTONLIB-11747624
  • published10 Aug 2025
  • disclosed23 Feb 2018

Introduced: 23 Feb 2018

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

How to fix?

Upgrade Debian:14 leptonlib to version 1.74.4-2 or higher.

NVD Description

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

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.