Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-27284
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 17:16 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 28 Feb 2024, 15:46 UTC

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.

osv:CVE-2024-27284
Complete source record
{
  "id": "76966315ea93aa523f49302242b66cc19857a50292d835a32360b6747f268e7b",
  "url": "https://osv.dev/vulnerability/CVE-2024-27284",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "cassandra-rs non-idiomatic use of iterators leads to use after free",
    "summary": "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.",
    "evidence": "osv:CVE-2024-27284",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-27284",
      "aliases": [
        "CVE-2024-27284",
        "GHSA-x9xc-63hg-vcfq",
        "RUSTSEC-2024-0017"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cassandra-rs/cassandra-rs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ae054dc8044eac9c2c7ae2b1ab154b53ca7f8df7"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.0.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ae054dc8044eac9c2c7ae2b1ab154b53ca7f8df7"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "cpe": "cpe:2.3:a:cassandra-rs_project:cassandra-rs:*:*:*:*:*:rust:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.0.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.0.1",
            "2.0.0",
            "1.2.0",
            "1.1.0",
            "1.0.0",
            "0.17.2",
            "0.17.1",
            "0.17.0",
            "0.16.0",
            "0.15.1",
            "0.15.0",
            "0.14.1",
            "0.14.0",
            "0.13.2",
            "0.13.1",
            "0.13.0",
            "0.12.0",
            "0.11.0",
            "0.10.2",
            "0.10.1",
            "0.10.0",
            "0.8.2",
            "0.8.1",
            "0.8.0",
            "0.6.10",
            "0.6.7",
            "0.6.6",
            "0.6.5",
            "0.6.4",
            "0.6.3",
            "0.6.2",
            "0.6.1",
            "0.6.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27284.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:21.381796026Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27284.json",
        "https://github.com/Metaswitch/cassandra-rs/security/advisories/GHSA-x9xc-63hg-vcfq",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-27284",
        "https://github.com/Metaswitch/cassandra-rs/commit/ae054dc8044eac9c2c7ae2b1ab154b53ca7f8df7"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-416"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27284.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-27284",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 487620,
  "published_at": "2024-02-28T15:46:37.388+00:00"
}