Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-38195

An issue was discovered in the libsecp256k1 crate before 0.5.0 for Rust. It can verify an invalid signature because it allows the R or S parameter to be larger than the curve order, aka an overflow.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-38195
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 05:05 UTC · Revision 1

Source evidence

CVE-2021-38195

core-osv · Original source

Published 8 Aug 2021, 06:15 UTC

An issue was discovered in the libsecp256k1 crate before 0.5.0 for Rust. It can verify an invalid signature because it allows the R or S parameter to be larger than the curve order, aka an overflow.

osv:CVE-2021-38195
Complete source record
{
  "id": "e97175154c0231c1cd30a9a9cf97e3e2a38c3e9d15aa623bd65e845b2480d6fe",
  "url": "https://osv.dev/vulnerability/CVE-2021-38195",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-38195",
    "summary": "An issue was discovered in the libsecp256k1 crate before 0.5.0 for Rust. It can verify an invalid signature because it allows the R or S parameter to be larger than the curve order, aka an overflow.",
    "evidence": "osv:CVE-2021-38195",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-38195",
      "aliases": [
        "CVE-2021-38195",
        "GHSA-g4vj-x7v9-h82m",
        "RUSTSEC-2021-0076"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/bitcoin-core/secp256k1",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "e3a885d42a7800c1ccebad94ad1e2b82c4df5c65"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:parity:libsecp256k1:*:*:*:*:*:rust:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.5.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.4.1",
            "v0.4.0",
            "v0.3.2",
            "v0.3.1",
            "v0.3.0",
            "v0.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-38195.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:24.495128410Z",
      "provider": "osv",
      "references": [
        "https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/libsecp256k1/RUSTSEC-2021-0076.md",
        "https://rustsec.org/advisories/RUSTSEC-2021-0076.html"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-38195",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 431162,
  "published_at": "2021-08-08T06:15:09.117+00:00"
}