# CVE-2022-31020: Remote code execution in Indy's NODE_UPGRADE transaction

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.38%, higher than 84% of CVEs (2026-12-01)
- Published: 2022-09-02T21:55:20.000Z
- Modified: 2026-06-17T04:44:37.220Z
- Also known as: GHSA-r6v9-p59m-gj2p, PYSEC-2022-265
- Weaknesses: CWE-20, CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Indy Node is the server portion of a distributed ledger purpose-built for decentralized identity. In versions 1.12.4 and prior, the `pool-upgrade` request handler in Indy-Node allows an improperly authenticated attacker to remotely execute code on nodes within the network. 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. As a workaround, endorsers should not create DIDs for untrusted users. A vulnerable ledger should configure `auth_rules` to prevent new DIDs from being written to the ledger until the network can be upgraded.

(As written by CVE List.)

## Affected

- hyperledger indy-node: <= 1.12.4
- indy-node (PyPI): before 1.12.5rc1; before fe507474f77084faef4539101e2bbb4d508a97f5
- linuxfoundation indy-node: up to 1.12.4

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/hyperledger/indy-node/security/advisories/GHSA-r6v9-p59m-gj2p> (advisory, third-party-advisory, web)
- <https://github.com/hyperledger/indy-node/commit/fe507474f77084faef4539101e2bbb4d508a97f5> (fix, patch, third-party-advisory, web)
- <https://github.com/hyperledger/indy-node/releases/tag/v1.12.5> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31020> (advisory)
- <https://github.com/hyperledger/indy-node> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/indy-node/PYSEC-2022-265.yaml> (web)

## Sources

- CVE List: [CVE-2022-31020](https://www.cve.org/CVERecord?id=CVE-2022-31020), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-r6v9-p59m-gj2p](https://github.com/advisories/GHSA-r6v9-p59m-gj2p), CC-BY-4.0, modified 2024-11-23
- NVD: [CVE-2022-31020](https://nvd.nist.gov/vuln/detail/CVE-2022-31020), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-265](https://osv.dev/vulnerability/PYSEC-2022-265), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-31020 · Whole record: https://cve.day/CVE-2022-31020.json · Rebuilt by cve.day 2026-11-25T22:58:14.667Z
