Security Resilience

CVE-2023-40015

Vyperlang Vyper ≤ 0.3.9

Public PoC
Published
04 September 2023
Modified
21 November 2024
CVSS Score v3.1 3.7
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS Score 0.0049 43th percentile
Risk Priority 33 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2023-40015 is a low-severity Always-Incorrect Control Flow Implementation (CWE-670) vulnerability in Vyperlang Vyper. Its CVSS base score is 3.7 (Low).

Operationally, ranked at the 43th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

EU & UK References

Vulnerability Data

Vyper is a Pythonic Smart Contract Language. For the following (probably non-exhaustive) list of expressions, the compiler evaluates the arguments from right to left instead of left to right. `unsafe_add, unsafe_sub, unsafe_mul, unsafe_div, pow_mod256, |, &, ^ (bitwise operators), bitwise_or…

more

(deprecated), bitwise_and (deprecated), bitwise_xor (deprecated), raw_call, <, >, <=, >=, ==, !=, in, not in (when lhs and rhs are enums)`. This behaviour becomes a problem when the evaluation of one of the arguments produces side effects that other arguments depend on. The following expressions can produce side-effect: state modifying external call , state modifying internal call, `raw_call`, `pop()` when used on a Dynamic Array stored in the storage, `create_minimal_proxy_to`, `create_copy_of`, `create_from_blueprint`. This issue has not yet been patched. Users are advised to 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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2023-32675Same product: Vyperlang Vyper
CVE-2023-30629Same product: Vyperlang Vyper
CVE-2023-41052Same product: Vyperlang Vyper
CVE-2025-21607Same product: Vyperlang Vyper
CVE-2024-24560Same product: Vyperlang Vyper
CVE-2023-42441Same product: Vyperlang Vyper
CVE-2024-26149Same product: Vyperlang Vyper
CVE-2023-42443Same product: Vyperlang Vyper
CVE-2023-32059Same product: Vyperlang Vyper
CVE-2023-32058Same product: Vyperlang Vyper

Affected Assets

vyperlang
vyper
≤ 0.3.9

Mitigating Controls

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development and acceptance can detect paths that deviate from intended logic.

prevents

Secure coding standards and reviews directly target flawed control-flow implementations.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-670, a class-level weakness, and none of its children carries one either.

References