CVE-2023-41052
MEDIUM 5.3CVSS 3.1incorrect order of evaluation of side effects for some builtins
Vyper is a Pythonic Smart Contract Language. In affected versions the order of evaluation of the arguments of the builtin functions uint256_addmod, uint256_mulmod, ecadd and ecmul does not follow source order. This behaviour is problematic when the evaluation of one of the arguments produces side effects that other arguments depend on. A patch is currently being developed on pull request #3583. When using builtins from the list above, users should make sure that the arguments of the expression do not produce side effects or, if one does, that no other argument is dependent on those side effects.
- Published
- 4 Sep 2023
- Last modified
- 17 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-670
- Also known as
- GHSA-4hg4-9mf5-wxxqPYSEC-2023-168
- Sources
- NVDJSONOSV GHSA-4hg4-9mf5-wxxqJSONOSV PYSEC-2023-168JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vyperlang | vypercpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:* |
<= 0.3.9 | |
| OSV | PyPI | vyper | < 0.3.10 | 0.3.10 |
| OSV | PyPI | vyper | < 0.3.10rc1 | 0.3.10rc1 |
References
- https://github.com/vyperlang/vyper/pull/3583 · Patch, WEB, FIX
- https://github.com/vyperlang/vyper/security/advisories/GHSA-4hg4-9mf5-wxxq · Exploit, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-41052 · ADVISORY
- https://github.com/vyperlang/vyper/commit/78fa8dd8f91ba0cb26277eeffb585c68c83e7daa · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-168.yaml · WEB
- https://github.com/vyperlang/vyper · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 4 Sep 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 Sep 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Sep 2023)