Out-of-Bounds Affecting cdr package, versions <0.2.4


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.55% (78th 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-CDR-1065978
  • published29 Jan 2021
  • disclosed29 Jan 2021
  • creditUnknown

Introduced: 29 Jan 2021

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

How to fix?

Upgrade cdr to version 0.2.4 or higher.

Overview

cdr is an A serialization/deserialization implementation of Common Data Representation

Affected versions of this package are vulnerable to Out-of-Bounds. An issue was discovered in Deserializer::read_vec in the cdr crate before 0.2.4 for Rust. A user-provided Read implementation can gain access to the old contents of newly allocated heap memory, violating soundness.

References

CVSS Scores

version 3.1