Memory Corruption Affecting vec-const package, versions *


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.11% (44th 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-VECCONST-1569199
  • published24 Aug 2021
  • disclosed14 Aug 2021
  • creditUnknown

Introduced: 14 Aug 2021

CVE-2021-45680  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

There is no fixed version for vec-const.

Overview

vec-const is an Use black magic to declare Vecs as const.

Affected versions of this package are vulnerable to Memory Corruption. It claims to construct a const Vec with nonzero length and capacity, but that cannot be done because such a Vec requires a pointer from an allocator.

References

CVSS Scores

version 3.1