CVE-2022-46173: Elrond-GO processing Fallback Search Of SCRs When Vulnerability
HIGHCVE-2022-46173 is a HIGH (CVSS 7.2) fallback search of scrs when vulnerability (CWE-669: Incorrect Resource Transfer Between Spheres) affecting Elrond-GO processing libraries in the Go ecosystem. The issue involves fallback search of scrs when not found in the main cache. Remediation is available by upgrading affected packages to version 1.3.50.
CVE-2022-46173 at a Glance
Security Impact
CVSS: 7.2
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:C/C:N/I:L/A:L).
How to Fix CVE-2022-46173
To remediate this vulnerability, upgrade all affected Elrond-GO processing 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.50
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-46173, inspect your project dependencies for Elrond-GO processing:
inspect dependencies for github.com/ElrondNetwork/elrond-go
Analyze the terminal output to locate any version of Elrond-GO processing in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.50), 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-669: Incorrect Resource Transfer Between Spheres, where the product does not properly transfer a resource/behavior to another sphere, or improperly imports a resource/behavior from another sphere, in a manner that provides unintended control over that resource. In Elrond-GO processing, 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-46173 Affected Elrond-GO processing Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/ElrondNetwork/elrond-go
|
Go |
< 1.3.50
|
1.3.50
|
References
Frequently Asked Questions
What is CVE-2022-46173?
Which Elrond-GO processing versions are affected?
What version fixes CVE-2022-46173?
Is github.com/ElrondNetwork/elrond-go affected?
What is the CVSS score of CVE-2022-46173?
What CWE is associated with CVE-2022-46173?
How can I check Go dependencies for CVE-2022-46173?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p228-4mrh-ww7r",
"modified" : "2022-12-30T16:57:11Z",
"published" : "2022-12-30T16:57:11Z",
"aliases" : [ "CVE-2022-46173" ],
"summary" : "Elrond-GO processing: fallback search of SCRs when not found in the main cache",
"details" : "### Impact\nProcessing issue, nodes are affected when trying to process a cross-shard relayed transaction with a smart contract deploy transaction data. The problem was a bad correlation between the transaction caches and the processing component. If the above-mentioned transaction was sent with more gas than required, the smart contract result (SCR transaction) that should have returned the leftover gas, would have been wrongly added to a cache that the processing unit did not consider. The node stopped notarizing metachain blocks. The fix was actually to extend the SCR transaction search in all other caches if it wasn't found in the correct (expected) sharded-cache. \n\n### Patches\nAll versions >= v1.3.50 will contain this patch\n\n### Workarounds\nFor the moment there is no workaround\n\n### References\nN/A\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [elrond-go main repo](https://github.com/ElrondNetwork/elrond-go)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/ElrondNetwork/elrond-go"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.50"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.3.48"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ElrondNetwork/elrond-go/security/advisories/GHSA-p228-4mrh-ww7r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-46173"
}, {
"type" : "WEB",
"url" : "https://github.com/ElrondNetwork/elrond-go/pull/4718"
}, {
"type" : "WEB",
"url" : "https://github.com/ElrondNetwork/elrond-go/commit/39d7ddcb08bb34217dab6daef7cd9d287fb8cab3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ElrondNetwork/elrond-go"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-669" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-30T16:57:11Z",
"nvd_published_at" : "2022-12-28T07:15:00Z"
}
}