CVE-2021-21405

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-21405
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-21405.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-21405
Aliases
Related
Published
2021-04-15T22:15:11Z
Modified
2025-01-08T07:40:20.559108Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/filecoin-project/lotus

Affected ranges

Type
GIT
Repo
https://github.com/filecoin-project/lotus
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.9.1-pre1

v0.*

v0.1.0
v0.1.1
v0.1.5
v0.1.6
v0.10.0
v0.10.1
v0.10.2
v0.10.3-pre1
v0.2.1
v0.2.10
v0.2.2
v0.2.5
v0.2.6
v0.2.7
v0.2.8
v0.2.9
v0.3.0
v0.3.1
v0.3.2
v0.4.0
v0.4.1
v0.4.2
v0.5.0
v0.5.1
v0.5.10
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.5.7
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.2
v0.6.2-rc1
v0.7.0
v0.7.1
v0.7.2
v0.8.0
v0.8.1
v0.9.0
v0.9.0-rc1
v0.9.0-rc2
v0.9.1

v1.*

v1.0.0
v1.1.0
v1.1.1
v1.1.1-pre1
v1.1.2
v1.1.3
v1.1.3-pre1
v1.1.3-rc1
v1.2.0
v1.2.1
v1.2.2
v1.2.2-rc1
v1.2.3
v1.2.3-rc1
v1.3.0
v1.3.0-rc1
v1.4.0
v1.4.1
v1.4.1-pre1
v1.4.2
v1.4.2-rc1
v1.5.0-pre1
v1.5.0-pre2
v1.5.0-pre3
v1.5.0-rc1
v1.5.0-rc2