{
  "schema_version": "1.4.0",
  "id": "GHSA-jf5h-cf95-w759",
  "modified": "2022-06-17T00:16:24Z",
  "published": "2022-06-17T00:16:24Z",
  "aliases": [],
  "summary": "Optional `Deserialize` implementations lacking validation",
  "details": "When activating the non-default feature `serialize`, most structs implement\n`serde::Deserialize` without sufficient validation. This allows breaking\ninvariants in safe code, leading to:\n\n* Undefined behavior in `as_string()` methods (which use\n  `std::str::from_utf8_unchecked()` internally).\n* Panics due to failed assertions.\n\nSee https://github.com/gz/rust-cpuid/issues/43.\n",
  "severity": [],
  "affected": [
    {
      "package": {
        "ecosystem": "crates.io",
        "name": "raw-cpuid"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "3.1.0"
            },
            {
              "fixed": "9.1.1"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/gz/rust-cpuid/issues/43"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/gz/rust-cpuid"
    },
    {
      "type": "WEB",
      "url": "https://rustsec.org/advisories/RUSTSEC-2021-0089.html"
    }
  ],
  "database_specific": {
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-17T00:16:24Z",
    "nvd_published_at": null
  }
}