Skip to content
OpenAdvisories
High · 7.5 CVE-2024-27284 EUVD-2024-1335GHSA-x9xc-63hg-vcfqRUSTSEC-2024-0017

cassandra-rs non-idiomatic use of iterators leads to use after free

Published Feb 28, 2024 · Updated Aug 12, 2024 · Assigned by GitHub_M

Description

cassandra-rs is a Cassandra (CQL) driver for Rust. Code that attempts to use an item (e.g., a row) returned by an iterator after the iterator has advanced to the next item will be accessing freed memory and experience undefined behaviour. The problem has been fixed in version 3.0.0.

Affected products

VendorProductAffectedFixed
Metaswitch cassandra-rs < 3.0.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io cassandra-cpp < 3.0.0 3.0.0 GHSA-x9xc-63hg-vcfq
crates.io cassandra-cpp >= 0.0.0-0, < 3.0.0 3.0.0 RUSTSEC-2024-0017

References