Use After Free Affecting ordered-float package, versions >=2.0.0 <2.0.1>=0.2.2 <1.1.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.39% (31st 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-RUST-ORDEREDFLOAT-1296842
  • published26 May 2021
  • disclosed6 Dec 2020
  • creditUnknown

Introduced: 6 Dec 2020

CVE-2020-35923  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade ordered-float to version 2.0.1, 1.1.1 or higher.

Overview

ordered-float is a wrappers for total ordering on floats.

Affected versions of this package are vulnerable to Use After Free. After using assignment operators such as NotNan::add_assign, NotNan::mul_assign, etc., it was possible for the resulting NotNan value to contain a NaN. This could cause undefined behavior in safe code, because the safe NotNan::cmp method contains internal unsafe code that assumes the value is never NaN.

CVSS Base Scores

version 3.1