CVE-2022-46173
Elrond-GO processing: fallback search of SCRs when not found in the main cache
Impact
### Impact Processing 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. ### Patches All versions >= v1.3.50 will contain this patch ### Workarounds For the moment there is no workaround ### References N/A ### For more information If you have any questions or comments about this advisory: * Open an issue in [elrond-go main repo](https://github.com/ElrondNetwork/elrond-go)
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/ElrondNetwork/elrond-go | <= 1.3.48 | 1.3.50 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Elrond | Elrond Go | before 1.3.50 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/ElrondNetwork/elrond-go/commit/39d7ddcb08bb34217dab6daef7cd9d287fb8cab3
- https://github.com/ElrondNetwork/elrond-go/pull/4718
- https://github.com/ElrondNetwork/elrond-go/security/advisories/GHSA-p228-4mrh-ww7r
- https://github.com/advisories/GHSA-p228-4mrh-ww7r
- https://nvd.nist.gov/vuln/detail/CVE-2022-46173