# CVE-2023-41052: Vyper: incorrect order of evaluation of side effects for some builtins

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-09-04T16:39:49.000Z
- Modified: 2026-09-17T19:30:05.529Z
- Also known as: GHSA-4hg4-9mf5-wxxq, PYSEC-2023-168
- Weaknesses: CWE-670
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vyperlang vyper: <= 0.3.9; up to 0.3.9
- vyper (PyPI): before 0.3.10; before 0.3.10rc1

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-4hg4-9mf5-wxxq> (exploit, advisory, patch, third-party-advisory, web)
- <https://github.com/vyperlang/vyper/pull/3583> (fix, patch, web)
- <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)

## Sources

- CVE List: [CVE-2023-41052](https://www.cve.org/CVERecord?id=CVE-2023-41052), CVE Terms of Use, modified 2024-09-26
- GitHub Advisory Database: [GHSA-4hg4-9mf5-wxxq](https://github.com/advisories/GHSA-4hg4-9mf5-wxxq), CC-BY-4.0, modified 2026-09-17
- NVD: [CVE-2023-41052](https://nvd.nist.gov/vuln/detail/CVE-2023-41052), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-168](https://osv.dev/vulnerability/PYSEC-2023-168), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-41052 · Whole record: https://cve.day/CVE-2023-41052.json · Rebuilt by cve.day 2026-11-25T22:58:27.584Z
