NULL Pointer Dereference Affecting lru package, versions >=0.9.0 <0.16.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-LRU-14897561
  • published8 Jan 2026
  • disclosed7 Jan 2026
  • creditUnknown

Introduced: 7 Jan 2026

New CVE NOT AVAILABLE CWE-476  (opens in a new tab)

How to fix?

Upgrade lru to version 0.16.3 or higher.

Overview

lru is an an implementation of a LRU cache. The cache supports put, get, get_mut and pop operations, all of which are O(1).

Affected versions of this package are vulnerable to NULL Pointer Dereference via the IterMut iterator implementation. An attacker can cause undefined behavior or memory safety issues by triggering the creation of exclusive references that invalidate shared pointers held internally.

CVSS Base Scores

version 4.0
version 3.1