{
  "schema_version": "1.4.0",
  "id": "GHSA-9pp4-8p8v-g78w",
  "modified": "2021-08-18T20:22:32Z",
  "published": "2021-08-25T20:57:26Z",
  "aliases": [
    "CVE-2020-36457"
  ],
  "summary": "Data races in lever",
  "details": "An issue was discovered in the lever crate before 0.1.1 for Rust. AtomicBox<T> implements the Send and Sync traits for all types T. This allows non-Send types such as Rc and non-Sync types such as Cell to be used across thread boundaries which can trigger undefined behavior and memory corruption.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "crates.io",
        "name": "lever"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.1.1"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-36457"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vertexclique/lever/issues/15"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vertexclique/lever/pull/17"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vertexclique/lever/commit/4a4cca61cdb25061967d58522229e147483007b1"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/vertexclique/lever"
    },
    {
      "type": "WEB",
      "url": "https://rustsec.org/advisories/RUSTSEC-2020-0137.html"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-362",
      "CWE-77"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-18T20:22:32Z",
    "nvd_published_at": "2021-08-08T06:15:00Z"
  }
}