HistoryEditJSON (OSV)

RUSTSEC-2023-0048

Unsoundness in intern methods on intaglio symbol interners

Reported
Issued
Package
intaglio (crates.io)
Type
INFO Unsound
Aliases
References
Patched
  • >=1.9.0
Affected Functions
Version
intaglio::SymbolTable::intern
  • <1.9.0
intaglio::bytes::SymbolTable::intern
  • <1.9.0
intaglio::cstr::SymbolTable::intern
  • <1.9.0, >=1.5.0
intaglio::osstr::SymbolTable::intern
  • <1.9.0, >=1.5.0
intaglio::path::SymbolTable::intern
  • <1.9.0, >=1.5.0

Description

Affected versions of this crate have a stacked borrows violation when creating references to interned contents. All interner types are affected.

The flaw was corrected in version 1.9.0 by reordering move and borrowing operations and storing interned contents by raw pointer instead of as a Box.

Advisory available under CC0-1.0 license.