Out-of-bounds Write Affecting traitobject package, versions *


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.87% (83rd 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-TRAITOBJECT-1279038
  • published4 May 2021
  • disclosed1 Jun 2020
  • creditUnknown

Introduced: 1 Jun 2020

CVE-2020-35881  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

traitobject is an Unsafe helpers for dealing with raw trait objects.

Affected versions of this package are vulnerable to Out-of-bounds Write via the traitobject::data and traitobject::data_mut functions. This crate gets the data pointer from fat pointers assuming that the first element in a fat pointer is the data pointer. This is currently true, but it may change in a future Rust version, leading to memory corruption.

CVSS Scores

version 3.1