{ "schema_version": "1.4.0", "id": "GHSA-mv8x-668m-53fg", "modified": "2022-09-16T21:21:43Z", "published": "2022-09-16T21:21:43Z", "aliases": [ "CVE-2022-36061" ], "summary": "Elrond-go has improper initialization", "details": "### Impact\nRead only calls between contracts can generate smart contracts results. For example, if contract A calls in read only mode contract B and the called function will make changes upon the contract's B state, the state will be altered for contract B as if the call was not made in the read-only mode. This can lead to some effects not designed by the original smart contracts programmers.\n\n### Patches\nPatch v1.3.35 or higher\n\n### Workarounds\nNo workaround\n\n### References\nFor future reference and understanding of this issue, anyone can check this integration test https://github.com/ElrondNetwork/elrond-go/blob/8e402fa6d7e91e779980122d3798b2bf50892945/integrationTests/vm/txsFee/asyncESDT_test.go#L452 that proves the fix and prevents a future code regression. \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](https://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:H/I:H/A:H" } ], "affected": [ { "package": { "ecosystem": "Go", "name": "github.com/ElrondNetwork/elrond-go" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "1.3.35" } ] } ], "database_specific": { "last_known_affected_version_range": "<= 1.3.34" } } ], "references": [ { "type": "WEB", "url": "https://github.com/ElrondNetwork/elrond-go/security/advisories/GHSA-mv8x-668m-53fg" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-36061" }, { "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#L452" }, { "type": "WEB", "url": "https://github.com/ElrondNetwork/elrond-go/releases/tag/v1.3.35" } ], "database_specific": { "cwe_ids": [ "CWE-665" ], "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2022-09-16T21:21:43Z", "nvd_published_at": "2022-09-06T21:15:00Z" } }