HistoryEditJSON (OSV)

RUSTSEC-2020-0007

use-after or double free of allocated memory

Reported
Issued
Package
bitvec (crates.io)
Type
Vulnerability
Categories
Aliases
References
CVSS Score
9.8 CRITICAL
CVSS Details
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality Impact
High
Integrity Impact
High
Availability Impact
High
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Patched
  • >=0.17.4
Unaffected
  • <0.11.0
Affected Functions
Version
bitvec::vec::BitVec::into_boxed_bitslice
  • <0.17.4, >=0.11.0

Description

Conversion of BitVec to BitBox did not account for allocation movement.

The flaw was corrected by using the address after resizing, rather than the original base address.

Advisory available under CC0-1.0 license.