# CVE-2018-20995: RUSTSEC-2018-0008 - Bug in SliceDeque::move_head_unchecked allows read of corrupted memory

Source: https://junglewise.ai/threats/cve-2018-20995-memory-corruption-slice-deque  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2018-12-05  
License: CC BY 4.0 with a link back

CVE-2018-20995 · Severity: low · CVSS 3 · Published 2018-12-05

Bug in SliceDeque::move_head_unchecked allows read of corrupted memory

Technologies: [slice-deque (crates.io)](https://junglewise.ai/threats/technologies/slice-deque). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2018-20995 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2018-20995 being exploited in the wild.

**How severe is CVE-2018-20995?** Low severity, with a CVSS score of 3, published 5 December 2018.

**Which products and versions are affected?** slice-deque (crates.io) SEMVER:introduced=0,fixed=0.1.16, SEMVER:introduced=0.0.0-0,fixed=0.1.16.

**Is there a fix for CVE-2018-20995?** Yes. slice-deque (crates.io): upgrade to 0.1.16 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2018-20995?** Check whether you run slice-deque (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- slice-deque (crates.io): upgrade to 0.1.16 or later

  ```sh
  cargo update -p slice-deque
  ```


## Affected products

- slice-deque (crates.io) SEMVER:introduced=0,fixed=0.1.16, SEMVER:introduced=0.0.0-0,fixed=0.1.16

## Identifiers

- CVE-2018-20995
- GHSA-hr3c-6mmp-6m39
- RUSTSEC-2018-0008

## Related threats

- [Slice Ring Buffer and Slice Deque contains four unique double-free vulnerabilities triggered through safe APIs](https://junglewise.ai/threats/slice-ring-buffer-and-slice-deque-contains-four-unique-double-free-02dde4ab)
- [RUSTSEC-2021-0047 - SliceDeque::drain_filter can double drop an element if the predicate panics](https://junglewise.ai/threats/cve-2021-29938-double-free-in-slice-deque)
- [RUSTSEC-2020-0158 - slice-deque is unmaintained](https://junglewise.ai/threats/rustsec-2020-0158-slice-deque-is-unmaintained-3061c768)
- [RUSTSEC-2019-0002 - Bug in SliceDeque::move_head_unchecked corrupts its memory](https://junglewise.ai/threats/cve-2019-15543-out-of-bounds-write-in-slice-deque)
