Unsafe Memory Condition Affecting memoffset package, versions <0.5.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-MEMOFFSET-451655
  • published18 Jul 2019
  • disclosed21 Jun 2019
  • creditMazdak Farrokhzad

Introduced: 21 Jun 2019

CVE-2019-15553  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade memoffset to version 0.5.0 or higher.

Overview

memoffset is a C-Like offset_of functionality for Rust structs.

Affected versions of this package are vulnerable to Unsafe Memory Condition. A flaw in offset_of and span_of within the package can cause SIGILL, due to zero-initializing references. This flaw was corrected by using MaybeUninit.

CVSS Scores

version 3.1