GitHub Advisoryadvisory · crates.io

GHSA-wq8f-46ww-6c2h Integer underflow in untrusted

HIGH Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2018-20989
Ecosystem
crates.io
Packages
untrusted
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-191
Reviewed
2021-08-19

Affected packages

• crates.io untrusted: < 0.6.2 → fixed in 0.6.2

Description

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.

Related

Alias · CVE (1)

  • CVE-2018-20989 An issue was discovered in the untrusted crate before 0.6.2 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-191 Integer Underflow (Wrap or Wraparound) weakness

References