CVE-2023-42460
HIGH 7.5CVSS 3.1Vyper's `_abi_decode` input not validated in complex expressions
Vyper is a Pythonic Smart Contract Language for the EVM. The _abi_decode() function does not validate input when it is nested in an expression. Uses of _abi_decode() can be constructed which allow for bounds checking to be bypassed resulting in incorrect results. This issue has not yet been fixed, but a fix is expected in release 0.3.10. Users are advised to reference pull request #3626.
- Published
- 27 Sep 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-682
- Also known as
- GHSA-cx2q-hfxr-rj97PYSEC-2023-191
- Sources
- NVDJSONOSV GHSA-cx2q-hfxr-rj97JSONOSV PYSEC-2023-191JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vyperlang | vypercpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:* |
>= 0.3.4, < 0.3.10 | 0.3.10 |
| OSV | PyPI | vyper | >= 0.3.4, < 0.3.10 | 0.3.10 |
References
- https://github.com/vyperlang/vyper/pull/3626 · Patch, WEB, FIX
- https://github.com/vyperlang/vyper/security/advisories/GHSA-cx2q-hfxr-rj97 · Exploit, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-42460 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-191.yaml · WEB
- https://github.com/vyperlang/vyper · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 27 Sep 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Sep 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Sep 2023)