{"id":"CVE-2021-38195","aliases":["CVE-2021-38195","GHSA-g4vj-x7v9-h82m","RUSTSEC-2021-0076"],"related":[],"kind":"vulnerability","state":"published","title":"Overflow in libsecp256k1","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"libsecp256k1 accepts signatures whose R or S parameter is larger than the\nsecp256k1 curve order, which differs from other implementations. This could\nlead to invalid signatures being verified.\n\nThe error is resolved in 0.5.0 by adding a `check_overflow` flag.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se ha detectado un problema en la crate libsecp256k1 versiones anteriores a 0.5.0 para Rust. Puede verificar una firma no válida porque permite que el parámetro R o S sea mayor que el orden de la curva, lo que supone un desbordamiento","source":"nvd"}],"published":"2021-07-13T12:00:00.000Z","modified":"2026-06-17T04:01:44.243Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-190","CWE-347"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.0"}],"ecosystem":"crates.io","package":"libsecp256k1","purl":"pkg:cargo/libsecp256k1","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.5.0"}],"ecosystem":"crates.io","package":"libsecp256k1","purl":"pkg:cargo/libsecp256k1","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.5.0"}],"vendor":"parity","product":"libsecp256k1","cpe":"cpe:2.3:a:parity:libsecp256k1:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0076.html","tags":["advisory","exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/libsecp256k1/RUSTSEC-2021-0076.md","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38195","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/paritytech/libsecp256k1/pull/67","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/paritytech/libsecp256k1","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/libsecp256k1","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38195","url":"https://www.cve.org/CVERecord?id=CVE-2021-38195","licence":"CVE Terms of Use","modified":"2024-08-04T01:37:16.090Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g4vj-x7v9-h82m","url":"https://github.com/advisories/GHSA-g4vj-x7v9-h82m","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:26.227Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0076","url":"https://rustsec.org/advisories/RUSTSEC-2021-0076.html","licence":"CC0-1.0","modified":"2023-11-08T04:06:26.227Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38195","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38195","licence":"Public domain","modified":"2026-06-17T04:01:44.243Z"}],"updatedAt":"2026-11-25T22:58:03.056Z","epss":{"score":0.00909,"percentile":0.61011,"date":"2026-12-01T12:00:22.000Z"}}