Vulnerabilities in pkg:pypi/indy-node

PACKAGE
Advisory Identifier: GHSA-r6v9-p59m-gj2p
Advisory Summary

CVE-2022-31020 is a HIGH (CVSS 6.5) remote code execution vulnerability (CWE-287: Improper Authentication) affecting Indy node libraries in the PyPI ecosystem. The issue involves indy's node_upgrade transaction vulnerable to remote code execution. Remediation is available by upgrading affected packages to version 1.12.5rc1.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/indy-node

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/indy-node. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-r6v9-p59m-gj2p CVE-2022-31020 HIGH Indy's NODE_UPGRADE transaction vulnerable to remote code execution
GHSA-3gw4-m5w7-v89c CVE-2020-11090 CRITICAL Uncontrolled Resource Consumption in Indy Node
GHSA-wh2w-39f4-rpv2 CVE-2020-11093 HIGH Hyperledger Indy's update process of a DID does not check who signs the request
GHSA-x996-7qh9-7ff7 CVE-2022-31006 HIGH Hyperledger indy-node vulnerable to denial of service

CVE-2022-31020 at a Glance

CVE Identifier CVE-2022-31020
GHSA Identifier GHSA-r6v9-p59m-gj2p
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-287: Improper Authentication
Affected Product Indy node
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-31020

To remediate this vulnerability, upgrade all affected Indy node dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

indy-node fixed: 1.12.5rc1
pip install indy-node>=1.12.5rc1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show indy-node

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2022-31020, inspect your installed packages using pip:

pip show indy-node

Analyze the terminal output to locate any version of Indy node in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.5rc1), your application is affected.

Note: The pip show indy-node command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Indy node, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The `pool-upgrade` request handler in Indy-Node `<=1.12.4` allows an improperly authenticated attacker to remotely execute code on nodes within the network. Network operators are strongly encouraged to upgrade to the latest Indy-Node release `>=1.12.5` as soon as possible. ### Patches The `pool-upgrade` request handler in Indy-Node `>=1.12.5` has been updated to properly authenticate `pool-upgrade` transactions before any processing is performed by the request handler. The transactions are further sanitized to prevent remote code execution. ### Mitigations Network operators are strongly encouraged to upgrade to the latest Indy-Node release `>=1.12.5` as soon as possible. ### Acknowledgements Thank you to @shakreiner at CyberArk Labs for finding and responsibly disclosing this issue.

CVE-2022-31020 Affected Indy node Versions

1 component(s)
Fixed Versions:
1.12.5rc1
Product / Package Ecosystem Affected Versions Fixed Version
indy-node
PyPI
< 1.12.5rc1
1.12.5rc1

References

Frequently Asked Questions

What is CVE-2022-31020?
CVE-2022-31020 is a security vulnerability in Indy node involving Indy's NODE_UPGRADE transaction vulnerable to remote code execution under CWE-287: Improper Authentication.
Which Indy node versions are affected?
Affected versions include releases prior to 1.12.5rc1 across affected packages: indy-node.
What version fixes CVE-2022-31020?
Upgrading to 1.12.5rc1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is indy-node affected?
Yes, indy-node is affected in releases prior to 1.12.5rc1. Upgrade your dependency to 1.12.5rc1 or later.
What is the CVSS score of CVE-2022-31020?
CVE-2022-31020 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-31020?
CVE-2022-31020 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check PyPI dependencies for CVE-2022-31020?
Run the dependency tree command: 'pip show indy-node'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r6v9-p59m-gj2p",
  "modified" : "2024-11-18T16:26:27Z",
  "published" : "2022-09-02T21:55:20Z",
  "aliases" : [ "CVE-2022-31020" ],
  "summary" : "Indy's NODE_UPGRADE transaction vulnerable to remote code execution",
  "details" : "### Impact\n\nThe `pool-upgrade` request handler in Indy-Node `<=1.12.4` allows an improperly authenticated attacker to remotely execute code on nodes within the network.\n\nNetwork operators are strongly encouraged to upgrade to the latest Indy-Node release `>=1.12.5` as soon as possible.\n\n### Patches\n\nThe `pool-upgrade` request handler in Indy-Node `>=1.12.5` has been updated to properly authenticate `pool-upgrade` transactions before any processing is performed by the request handler.  The transactions are further sanitized to prevent remote code execution.\n\n### Mitigations\n\nNetwork operators are strongly encouraged to upgrade to the latest Indy-Node release `>=1.12.5` as soon as possible.\n\n### Acknowledgements\nThank you to @shakreiner at CyberArk Labs for finding and responsibly disclosing this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "indy-node"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.12.5rc1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/hyperledger/indy-node/security/advisories/GHSA-r6v9-p59m-gj2p"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31020"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hyperledger/indy-node/commit/fe507474f77084faef4539101e2bbb4d508a97f5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hyperledger/indy-node"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hyperledger/indy-node/releases/tag/v1.12.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/indy-node/PYSEC-2022-265.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-02T21:55:20Z",
    "nvd_published_at" : "2022-09-06T17:15:00Z"
  }
}