Email me

Rust advisories / slice-deque

Vulnerability CriticalRUSTSEC-2018-0008 · slice-deque

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

Short answerA security vulnerability in the slice-deque crate: Bug in SliceDeque::move_head_unchecked allows read of corrupted memory. Critical severity (CVSS 9.8). Fixed in 0.1.16: update to a fixed version.

Crateslice-deque
TypeVulnerability
Affected versionsBefore 0.1.16.
Fixed in0.1.16
SeverityCritical, CVSS 9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2018-12-05
Last changed2026-02-04
Also known asCVE-2018-20995, GHSA-hr3c-6mmp-6m39

What to do

  1. See which version you have: cargo tree -i slice-deque (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p slice-deque. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example slice-deque = "0.1.16") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Affected versions of this crate did not properly update the head and tail of the deque when inserting and removing elements from the front if, before insertion or removal, the tail of the deque was in the mirrored memory region, and if, after insertion or removal, the head of the deque is exactly at the beginning of the mirrored memory region.

An attacker that controls both element insertion and removal into the deque could put it in a corrupted state. Once the deque enters such an state, its head and tail are corrupted, but in bounds of the allocated memory. This can result in partial reads and writes, reads of uninitialized memory, reads of memory containing previously dropped objects, etc. An attacker could exploit this to alter program execution.

The flaw was corrected by properly updating the head and tail of the deque in this case.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for slice-deque

Full security history of slice-deque

Up next

Same crateslice-deque: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ