{"id":"CVE-2022-36061","aliases":["CVE-2022-36061","GHSA-mv8x-668m-53fg","GO-2022-0971"],"related":[],"kind":"vulnerability","state":"published","title":"Elrond go can execute on same context checks in VM","summary":"Elrond go is the go implementation for the Elrond Network protocol. In versions prior to 1.3.35, read 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. This issue was patched in version 1.3.35. There are no known workarounds.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Elrond go is the go implementation for the Elrond Network protocol. In versions prior to 1.3.35, read 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. This issue was patched in version 1.3.35. There are no known workarounds.","source":"cvelist"},{"lang":"en","text":"### 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))","format":"markdown","source":"ghsa"},{"lang":"en","text":"Elrond-go has improper initialization in github.com/ElrondNetwork/elrond-go","format":"markdown","source":"go"},{"lang":"es","text":"Elrond go es la implementación go para el protocolo de la Red Elrond. En versiones anteriores a la 1.3.35, las llamadas de sólo lectura entre contratos pueden generar resultados de contratos inteligentes. Por ejemplo, si el contrato A llama en modo de sólo lectura al contrato B y la función llamada realiza cambios sobre el estado del contrato B, el estado será alterado para el contrato B como si la llamada no fuera realizada en modo de sólo lectura. Esto puede conllevar a algunos efectos no diseñados por los programadores de los contratos inteligentes originales. Este problema fue parcheado en versión 1.3.35. No se presentan mitigaciones conocidas.","source":"nvd"}],"published":"2022-09-06T20:35:10.000Z","modified":"2026-06-17T04:52:50.113Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-665"],"affected":[{"ranges":[{"version":"< 1.3.35","status":"affected"}],"vendor":"ElrondNetwork","product":"elrond-go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.35"}],"ecosystem":"Go","package":"github.com/ElrondNetwork/elrond-go","purl":"pkg:golang/github.com/ElrondNetwork/elrond-go","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.35"}],"ecosystem":"Go","package":"github.com/ElrondNetwork/elrond-go","purl":"pkg:golang/github.com/ElrondNetwork/elrond-go","source":"go"},{"ranges":[{"status":"affected","fixed":"1.3.35"}],"vendor":"elrond","product":"elrond_go","cpe":"cpe:2.3:a:elrond:elrond_go:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ElrondNetwork/elrond-go/security/advisories/GHSA-mv8x-668m-53fg","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/ElrondNetwork/elrond-go/blob/8e402fa6d7e91e779980122d3798b2bf50892945/integrationTests/vm/txsFee/asyncESDT_test.go#L452","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/ElrondNetwork/elrond-go/releases/tag/v1.3.35","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36061","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/ElrondNetwork/elrond-go","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-04-22T15:39:41.510Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-36061","url":"https://www.cve.org/CVERecord?id=CVE-2022-36061","licence":"CVE Terms of Use","modified":"2025-04-22T17:24:16.700Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mv8x-668m-53fg","url":"https://github.com/advisories/GHSA-mv8x-668m-53fg","licence":"CC-BY-4.0","modified":"2024-08-21T16:28:51.829Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0971","url":"https://pkg.go.dev/vuln/GO-2022-0971","licence":"CC-BY-4.0","modified":"2026-03-03T04:51:05.709Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-36061","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36061","licence":"Public domain","modified":"2026-06-17T04:52:50.113Z"}],"updatedAt":"2026-11-25T22:58:14.738Z","epss":{"score":0.01311,"percentile":0.715,"date":"2026-12-01T12:00:22.000Z"}}