Integer Overflow or Wraparound Affecting libraw package, versions [,0.18.12)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (71st 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-LIBRAW-2369256
  • published26 Jan 2022
  • disclosed7 Dec 2018
  • creditUnknown

Introduced: 7 Dec 2018

CVE-2018-5816  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade libraw to version 0.18.12 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. An integer overflow error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.12 can be exploited to trigger a division by zero via specially crafted NOKIARAW file (Note: This vulnerability is caused due to an incomplete fix of CVE-2018-5804).

CVSS Scores

version 3.1