CVE-2022-36058: Github.com/ElrondNetwork/elrond go Elrond-go MultiESDTNFTTransfer Call On A Vulnerability

HIGH
Advisory Identifier: GHSA-qf7j-25g9-r63f
CVSS 7.5
CWE-20
Published
Advisory Summary

CVE-2022-36058 is a HIGH (CVSS 7.5) elrond-go multiesdtnfttransfer call on a vulnerability (CWE-20: Improper Input Validation) affecting Github.com/ElrondNetwork/elrond go libraries in the Go ecosystem. The issue involves elrond-go multiesdtnfttransfer call on a sc address with missing function name. Remediation is available by upgrading affected packages to version 1.3.34.

CVE-2022-36058 at a Glance

CVE Identifier CVE-2022-36058
GHSA Identifier GHSA-qf7j-25g9-r63f
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/ElrondNetwork/elrond go
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.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:N/S:U/C:N/I:H/A:N).

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

How to Fix CVE-2022-36058

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

github.com/ElrondNetwork/elrond-go fixed: 1.3.34
Upgrade github.com/ElrondNetwork/elrond-go to 1.3.34
Verify Direct and Transitive Dependencies

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

inspect dependencies for github.com/ElrondNetwork/elrond-go

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-36058, inspect your project dependencies for Github.com/ElrondNetwork/elrond go:

inspect dependencies for github.com/ElrondNetwork/elrond-go

Analyze the terminal output to locate any version of Github.com/ElrondNetwork/elrond go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.34), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/ElrondNetwork/elrond go, 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 Anyone who uses elrond-go to process blocks (historical or actual) that contains a transaction like this: `MultiESDTNFTTransfer@01@54444558544b4b5955532d323631626138@00@0793afc18c8da2ca@` (mind the missing function name after the last `@`) Basic functionality like p2p messaging, storage, API requests and such are unaffected. ### Patches Patch v1.3.34 or higher ### Workarounds No workarounds ### References For future reference, one can observe the following integration test: [[provide the link to the integration test]](https://github.com/ElrondNetwork/elrond-go/blob/8e402fa6d7e91e779980122d3798b2bf50892945/integrationTests/vm/txsFee/asyncESDT_test.go#L402) ### For more information If you have any questions or comments about this advisory: * Open an issue in elrond-go (http://github.com/ElrondNetwork/elrond-go/issues)

CVE-2022-36058 Affected Github.com/ElrondNetwork/elrond go Versions

1 component(s)
Fixed Versions:
1.3.34
Product / Package Ecosystem Affected Versions Fixed Version
github.com/ElrondNetwork/elrond-go
Go
< 1.3.34
1.3.34

References

Frequently Asked Questions

What is CVE-2022-36058?
CVE-2022-36058 is a security vulnerability in Github.com/ElrondNetwork/elrond go involving elrond-go MultiESDTNFTTransfer call on a SC address with missing function name under CWE-20: Improper Input Validation.
Which Github.com/ElrondNetwork/elrond go versions are affected?
Affected versions include releases prior to 1.3.34 across affected packages: github.com/ElrondNetwork/elrond-go.
What version fixes CVE-2022-36058?
Upgrading to 1.3.34 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/ElrondNetwork/elrond-go affected?
Yes, github.com/ElrondNetwork/elrond-go is affected in releases prior to 1.3.34. Upgrade your dependency to 1.3.34 or later.
What is the CVSS score of CVE-2022-36058?
CVE-2022-36058 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2022-36058?
CVE-2022-36058 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2022-36058?
Run the dependency tree command: 'inspect dependencies for github.com/ElrondNetwork/elrond-go'. 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-qf7j-25g9-r63f",
  "modified" : "2022-09-10T02:26:45Z",
  "published" : "2022-09-01T22:24:26Z",
  "aliases" : [ "CVE-2022-36058" ],
  "summary" : "elrond-go MultiESDTNFTTransfer call on a SC address with missing function name",
  "details" : "### Impact\nAnyone who uses elrond-go to process blocks (historical or actual) that contains a transaction like this: `MultiESDTNFTTransfer@01@54444558544b4b5955532d323631626138@00@0793afc18c8da2ca@` (mind the missing function name after the last `@`)\nBasic functionality like p2p messaging, storage, API requests and such are unaffected.\n\n### Patches\nPatch v1.3.34 or higher\n\n### Workarounds\nNo workarounds\n\n### References\nFor future reference, one can observe the following integration test:\n[[provide the link to the integration test]](https://github.com/ElrondNetwork/elrond-go/blob/8e402fa6d7e91e779980122d3798b2bf50892945/integrationTests/vm/txsFee/asyncESDT_test.go#L402)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in elrond-go (http://github.com/ElrondNetwork/elrond-go/issues)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/ElrondNetwork/elrond-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.34"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.3.33"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ElrondNetwork/elrond-go/security/advisories/GHSA-qf7j-25g9-r63f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-36058"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ElrondNetwork/elrond-go/commit/cb487fd7be2a2077638eb34ae771a73630c870c7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ElrondNetwork/elrond-go"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ElrondNetwork/elrond-go/blob/8e402fa6d7e91e779980122d3798b2bf50892945/integrationTests/vm/txsFee/asyncESDT_test.go#L402"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-01T22:24:26Z",
    "nvd_published_at" : "2022-09-06T20:15:00Z"
  }
}