Out-of-bounds Write Affecting calamine package, versions <0.17.0


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
0.61% (79th 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-CALAMINE-2803841
  • published27 Apr 2022
  • disclosed25 Aug 2021
  • creditUnknown

Introduced: 25 Aug 2021

CVE-2021-26951  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade calamine to version 0.17.0 or higher.

Overview

calamine is an Excel/OpenDocument Spreadsheets file reader/deserializer, in pure Rust.

Affected versions of this package are vulnerable to Out-of-bounds Write which allows attackers to overwrite heap-memory locations. This is because Vec::set_len is used without proper memory claiming, and this uninitialized memory is used for a user-provided Read operation, as demonstrated by Sectors::get.

CVSS Scores

version 3.1