Vulnerability Details : CVE-2021-21405
Lotus is an Implementation of the Filecoin protocol written in Go. BLS signature validation in lotus uses blst library method VerifyCompressed. This method accepts signatures in 2 forms: "serialized", and "compressed", meaning that BLS signatures can be provided as either of 2 unique byte arrays. Lotus block validation functions perform a uniqueness check on provided blocks. Two blocks are considered distinct if the CIDs of their blockheader do not match. The CID method for blockheader includes the BlockSig of the block. The result of these issues is that it would be possible to punish miners for valid blocks, as there are two different valid block CIDs available for each block, even though this must be unique. By switching from the go based `blst` bindings over to the bindings in `filecoin-ffi`, the code paths now ensure that all signatures are compressed by size and the way they are deserialized. This happened in https://github.com/filecoin-project/lotus/pull/5393.
Products affected by CVE-2021-21405
- cpe:2.3:a:filecoin:lotus:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-21405
0.19%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 57 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-21405
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:P/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
3.9
|
3.6
|
NIST | |
5.9
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
2.2
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2021-21405
-
The product does not verify, or incorrectly verifies, the cryptographic signature for data.Assigned by: security-advisories@github.com (Primary)
References for CVE-2021-21405
-
https://github.com/filecoin-project/lotus/security/advisories/GHSA-4g52-pqcj-phvh
BLS Signature "Malleability" · Advisory · filecoin-project/lotus · GitHubPatch;Third Party Advisory
-
https://gist.github.com/wadeAlexC/2490d522e81a796af9efcad1686e6754
A_DESCRIPTION.md · GitHubExploit;Third Party Advisory
-
https://github.com/filecoin-project/lotus/pull/5393
refactor: switch to filecoin-ffi bls api for bls signatures by dignifiedquire · Pull Request #5393 · filecoin-project/lotus · GitHubPatch;Third Party Advisory
Jump to