Race Condition Affecting leptonica package, versions [,1.76.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.25% (18th 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-2370263
  • published26 Jan 2022
  • disclosed23 Feb 2018
  • creditUnknown

Introduced: 23 Feb 2018

CVE-2018-7441  (opens in a new tab)
CWE-362  (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 Race Condition. Leptonica through 1.75.3 uses hardcoded /tmp pathnames, which might allow local users to overwrite arbitrary files or have unspecified other impact by creating files in advance or winning a race condition, as demonstrated by /tmp/junk_split_image.ps in prog/splitimage2pdf.c.

References

CVSS Base Scores

version 3.1