Uninitialized Memory Exposure Affecting slice-deque package, versions <0.1.16


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.21% (60th 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-SLICEDEQUE-72707
  • published18 Dec 2018
  • disclosed5 Dec 2018
  • creditUnknown

Introduced: 5 Dec 2018

CVE-2018-20995  (opens in a new tab)
CWE-201  (opens in a new tab)

How to fix?

Upgrade slice-deque to version 0.1.16 or higher.

Overview

slice-deque is a double-ended queue that Derefs into a slice, also known as a ring buffer or circular buffer.

Affected versions of this package are vulnerable to Uninitialized Memory Exposure. It did not properly update the head and tail of the deque when inserting and removing elements from the front if. An attacker who controls both element insertion and removal into the deque could insert a corrupted state. Once the deque enters such a state, its head and tail are corrupted, but in the bounds of the allocated memory.

CVSS Scores

version 3.1