CVE-2022-36058: Github.com/ElrondNetwork/elrond go Elrond-go MultiESDTNFTTransfer Call On A Vulnerability
HIGHCVE-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
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).
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.
Upgrade github.com/ElrondNetwork/elrond-go to 1.3.34
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
CVE-2022-36058 Affected Github.com/ElrondNetwork/elrond go Versions
1 component(s)| 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?
Which Github.com/ElrondNetwork/elrond go versions are affected?
What version fixes CVE-2022-36058?
Is github.com/ElrondNetwork/elrond-go affected?
What is the CVSS score of CVE-2022-36058?
What CWE is associated with CVE-2022-36058?
How can I check Go dependencies for CVE-2022-36058?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}