{"answers":{"affected":"7 open source packages ship an affected version, including github.com/hyperledger/fabric, hyperledger-fabric-orderer and hyperledger-fabric-peer. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-31121 in the wild and no public exploit code.","fix":"Upgrade github.com/hyperledger/fabric to a fixed version for your release line: 2.2.7 or 2.4.5.","what":"CVE-2022-31121 is a high-severity denial of service vulnerability in hyperledger fabric, published on 7 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-31121 and fix it if it is affected.\n\nWhat it is: CVE-2022-31121 is a high-severity denial of service vulnerability in hyperledger fabric, published on 7 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-31121 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/hyperledger/fabric (Go): affected all versions; fixed in 2.2.7\n- github.com/hyperledger/fabric (Go): affected all versions; fixed in 2.2.7\n- github.com/hyperledger/fabric (Go): affected from 2.3.0; fixed in 2.4.5\n- github.com/hyperledger/fabric (Go): affected from 2.3.0; fixed in 2.4.5\n- hyperledger-fabric-orderer (Bitnami): affected all versions; fixed in 2.2.7, 2.4.5\n- hyperledger-fabric-peer (Bitnami): affected all versions; fixed in 2.2.7, 2.4.5\n- hyperledger-fabric-tools (Bitnami): affected all versions; fixed in 2.2.7, 2.4.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-31121/ (Markdown: https://insights.sbomify.com/CVE-2022-31121/index.md)","id":"CVE-2022-31121","markdown":"https://insights.sbomify.com/CVE-2022-31121/index.md","name":"CVE-2022-31121","record":{"aliases":["BIT-hyperledger-fabric-orderer-2022-31121","BIT-hyperledger-fabric-peer-2022-31121","BIT-hyperledger-fabric-tools-2022-31121","GHSA-72x4-cq6r-jp4p"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Hyperledger Fabric","requires_auth":"none","summary":"A malformed consensus request can crash the orderer node in Hyperledger Fabric, requiring an upgrade to restore service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fabric","vendor":"hyperledger"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":["Bitnami","Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper Input Validation in fabric hyperledger","id":"CVE-2022-31121","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":7,"n_references":4,"next":{"headline":"Auth bypass in wire-server","id":"CVE-2022-31122"},"packages":[{"ecosystem":"Bitnami","fixed":["2.2.7","2.4.5"],"introduced":["0","2.3.0"],"last_affected":[],"package":"hyperledger-fabric-orderer","purl":"pkg:bitnami/hyperledger-fabric-orderer","source":"BIT-hyperledger-fabric-orderer-2022-31121"},{"ecosystem":"Bitnami","fixed":["2.2.7","2.4.5"],"introduced":["0","2.3.0"],"last_affected":[],"package":"hyperledger-fabric-peer","purl":"pkg:bitnami/hyperledger-fabric-peer","source":"BIT-hyperledger-fabric-peer-2022-31121"},{"ecosystem":"Bitnami","fixed":["2.2.7","2.4.5"],"introduced":["0","2.3.0"],"last_affected":[],"package":"hyperledger-fabric-tools","purl":"pkg:bitnami/hyperledger-fabric-tools","source":"BIT-hyperledger-fabric-tools-2022-31121"},{"ecosystem":"Go","fixed":["2.2.7"],"introduced":["0"],"last_affected":[],"package":"github.com/hyperledger/fabric","purl":null,"source":"GHSA-72x4-cq6r-jp4p"},{"ecosystem":"Go","fixed":["2.2.7"],"introduced":["0"],"last_affected":[],"package":"github.com/hyperledger/fabric","purl":"pkg:golang/github.com/hyperledger/fabric","source":"GHSA-72x4-cq6r-jp4p"},{"ecosystem":"Go","fixed":["2.4.5"],"introduced":["2.3.0"],"last_affected":[],"package":"github.com/hyperledger/fabric","purl":null,"source":"GHSA-72x4-cq6r-jp4p"},{"ecosystem":"Go","fixed":["2.4.5"],"introduced":["2.3.0"],"last_affected":[],"package":"github.com/hyperledger/fabric","purl":"pkg:golang/github.com/hyperledger/fabric","source":"GHSA-72x4-cq6r-jp4p"}],"prev":{"headline":"Federated share accepting/declining is not logged in audit log in Nextcloud Server","id":"CVE-2022-31120"},"products":["fabric"],"published":"2022-07-07","related":[{"cvss_score":9.3,"headline":"ObjectInputStream.readObject() without ObjectInputFilter in fabric-sdk-java allows Java deserialization RCE","id":"CVE-2026-41586","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2022-45196","kev_date_added":null,"published":"2022-11-12"},{"cvss_score":7.1,"headline":"Crosslinking transaction attack in hyperledger/fabric","id":"CVE-2023-46132","kev_date_added":null,"published":"2023-11-14"},{"cvss_score":7,"headline":"Remote denial of service in Hyperledger Fabric Gateway","id":"CVE-2022-36023","kev_date_added":null,"published":"2022-08-18"},{"cvss_score":5.3,"headline":"Hyperledger Fabric does not verify request has a timestamp within the expected time window","id":"CVE-2024-45244","kev_date_added":null,"published":"2024-08-25"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["hyperledger"]},"summary":"A malformed consensus request can crash the orderer node in Hyperledger Fabric, requiring an upgrade to restore service.","url":"https://insights.sbomify.com/CVE-2022-31121/"}