Email me

Rust advisories / untrusted

Vulnerability HighRUSTSEC-2018-0001 · untrusted

RUSTSEC-2018-0001: An integer underflow could lead to panic

Short answerA security vulnerability in the untrusted crate: An integer underflow could lead to panic. High severity (CVSS 7.5). Fixed in 0.6.2: update to a fixed version.

Crateuntrusted
TypeVulnerability
Affected versionsBefore 0.6.2.
Fixed in0.6.2
SeverityHigh, CVSS 7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2018-06-21
Last changed2023-11-08
Also known asCVE-2018-20989, GHSA-wq8f-46ww-6c2h

What to do

  1. See which version you have: cargo tree -i untrusted (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p untrusted. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example untrusted = "0.6.2") 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

A mistake in error handling in untrusted before 0.6.2 could lead to an integer underflow and panic if a user of the crate didn't properly check for errors returned by untrusted.

Combination of these two programming errors (one in untrusted and another by user of this crate) could lead to a panic and maybe a denial of service of affected software.

The error in untrusted is fixed in release 0.6.2 released 2018-06-21. It's also advisable that users of untrusted check for their sources for cases where errors returned by untrusted are not handled correctly.

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.

Up next

Same crateuntrusted: 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