NULL Pointer Dereference Affecting nanorand package, versions >=0.5.0 <0.6.1


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.24% (62nd 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 NULL Pointer Dereference vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-NANORAND-2326709
  • published27 Dec 2021
  • disclosed27 Dec 2021
  • creditCyborus04

Introduced: 27 Dec 2021

CVE-2021-45705  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade nanorand to version 0.6.1 or higher.

Overview

nanorand is an A tiny, fast, zero-dep library for random number generation.

Affected versions of this package are vulnerable to NULL Pointer Dereference due to the implementation of tls_rand and TlsWyRand . TlsWyRand's implementation of Deref unconditionally dereferences a raw pointer, and returns multiple mutable references to the same object.

CVSS Scores

version 3.1