{"id":"GHSA-mv8x-668m-53fg","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","aliases":["CVE-2022-36061","GO-2022-0971"],"modified":"2024-08-21T16:28:51.829529Z","published":"2022-09-16T21:21:43Z","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"},"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"}],"affected":[{"package":{"name":"github.com/ElrondNetwork/elrond-go","ecosystem":"Go","purl":"pkg:golang/github.com/ElrondNetwork/elrond-go"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.3.35"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.3.34","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-mv8x-668m-53fg/GHSA-mv8x-668m-53fg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}