{
  "schema_version": "1.4.0",
  "id": "GHSA-2wc6-2rcj-8v76",
  "modified": "2023-06-13T20:56:05Z",
  "published": "2021-08-25T21:00:41Z",
  "aliases": [
    "CVE-2017-1000168"
  ],
  "summary": "scalarmult() vulnerable to degenerate public keys",
  "details": "The scalarmult() function included in previous versions of this crate accepted all-zero public keys, for which the resulting Diffie-Hellman shared secret will always be zero regardless of the private key used.\n\nThis issue was fixed by checking for this class of keys and rejecting them if they are used.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "crates.io",
        "name": "sodiumoxide"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.0.14"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1000168"
    },
    {
      "type": "WEB",
      "url": "https://github.com/dnaq/sodiumoxide/issues/154"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sodiumoxide/sodiumoxide/commit/24c7a5550807ac8a09648b5878f19d14c3a69135"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/sodiumoxide/sodiumoxide"
    },
    {
      "type": "WEB",
      "url": "https://rustsec.org/advisories/RUSTSEC-2017-0001.html"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-1240"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-05T21:10:47Z",
    "nvd_published_at": null
  }
}