# CVE-2018-20995: Memory corruption slice-deque

- Severity: Critical 9.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.61%, higher than 76% of CVEs (2026-12-03)
- Published: 2018-12-05T12:00:00.000Z
- Modified: 2026-06-17T01:53:54.183Z
- Also known as: GHSA-hr3c-6mmp-6m39, RUSTSEC-2018-0008
- Related: RUSTSEC-2019-0002
- Weaknesses: CWE-119
- Assigned by: mitre

## Description

An issue was discovered in the slice-deque crate before 0.1.16 for Rust. move_head_unchecked allows memory corruption because deque updates are mishandled.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- slice-deque (crates.io): before 0.1.16; from 0.0.0-0 before 0.1.16
- slice-deque_project slice-deque: before 0.1.16

## Every score

- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2018-0008.html> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-20995> (advisory)
- <https://github.com/gnzlbg/slice_deque/issues/57> (report, web)
- <https://github.com/gnzlbg/slice_deque> (package)
- <https://crates.io/crates/slice-deque> (package)

## Sources

- CVE List: [CVE-2018-20995](https://www.cve.org/CVERecord?id=CVE-2018-20995), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-hr3c-6mmp-6m39](https://github.com/advisories/GHSA-hr3c-6mmp-6m39), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2018-0008](https://rustsec.org/advisories/RUSTSEC-2018-0008.html), CC0-1.0, modified 2026-02-04
- NVD: [CVE-2018-20995](https://nvd.nist.gov/vuln/detail/CVE-2018-20995), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-20995 · Whole record: https://cve.day/CVE-2018-20995.json · Rebuilt by cve.day 2026-11-25T22:57:42.466Z

cve.day sends alerts when a new vulnerability matches keywords, products or the components of an SBOM: https://cve.day/plans (2 alerts are free).
