# CVE-2020-36318

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.49.0 (CNA); fix release not confirmed
- Status: published
- Published: 2021-04-11 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2020-36318, DEBIAN-CVE-2020-36318
- Record: https://cvemate.com/vulnerability/CVE-2020-36318 · JSON: https://cvemate.com/vulnerability/CVE-2020-36318/json

## Description

```text
In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double free.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.676%, percentile 77.681%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian rustc (Debian): \< 1.53.0+dfsg1-1
- ubuntu rustc (Ubuntu): All versions (No fix recorded)
- rust-lang rust: ≥ 1.48.0, \< 1.49.0

## References

- <https://github.com/rust-lang/rust/issues/79808>
- <https://github.com/rust-lang/rust/pull/79814>
- <https://ubuntu.com/security/CVE-2020-36318>
- <https://rustsec.org/advisories/CVE-2020-36318.html>
- <https://www.cve.org/CVERecord?id=CVE-2020-36318>
- <https://security-tracker.debian.org/tracker/CVE-2020-36318>
- <https://nvd.nist.gov/vuln/detail/CVE-2020-36318>

---

Data as of 2026-12-05T09:59:48.945Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
