CVE-2021-26308 – marc
Package
Manager: cargo
Name: marc
Vulnerable Version: >=0 <2.0.0
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00291 pctl0.52047
Details
Uninitialized buffer use in marc Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation. (Record::read()). Arbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior. This flaw was fixed in commit 6299af0 by zero-initializing the newly allocated memory (via data.resize(len, 0)) instead of exposing uninitialized memory (unsafe { data.set_len(len) }).
Metadata
Created: 2021-08-25T20:53:14Z
Modified: 2023-06-13T18:44:34Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-3mf3-2gv9-h39j/GHSA-3mf3-2gv9-h39j.json
CWE IDs: ["CWE-908"]
Alternative ID: GHSA-3mf3-2gv9-h39j
Finding: F138
Auto approve: 1