CVE-2023-32675
Python vulnerability analysis and mitigation

Overview

Vyper, a pythonic Smart Contract Language for the ethereum virtual machine, was found to have a vulnerability (CVE-2023-32675) where contracts with more than one regular nonpayable function could receive funds through the default function, even when marked as nonpayable. This vulnerability affected versions prior to 0.3.8 and was discovered in May 2023 (Vyper Advisory).

Technical details

The vulnerability stems from the callvalue check being placed inside the selector section of the contract. When less than 4 bytes of calldata are used, it becomes possible to send funds to the default function, bypassing the nonpayable restriction. This occurs specifically in contracts that have at least one regular nonpayable function. The issue was resolved by removing the global calldatasize check in commit 02339dfda (Vyper Patch).

Impact

The vulnerability allows contracts to receive ether through their default functions even when explicitly marked as nonpayable, potentially violating intended contract behavior and security assumptions. This could affect any smart contract deployed using Vyper versions 0.3.7 or earlier that contains both a nonpayable default function and at least one other regular nonpayable function (Vyper Advisory).

Mitigation and workarounds

Users are advised to upgrade to Vyper version 0.3.8 or later, which contains the fix for this vulnerability. For those unable to upgrade immediately, the recommended workaround is to avoid using nonpayable default functions in their contracts (Vyper Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-35459CRITICAL9.3
  • PythonPython
  • pyload-ng
NoNoApr 04, 2026
CVE-2026-35463HIGH8.8
  • PythonPython
  • pyload-ng
NoNoApr 04, 2026
CVE-2026-35464HIGH7.5
  • PythonPython
  • pyload-ng
NoNoApr 04, 2026
CVE-2026-30762HIGH7.5
  • PythonPython
  • lightrag-hku
NoYesApr 04, 2026
GHSA-5hr4-253g-cpx2MEDIUM6.9
  • PythonPython
  • web3
NoYesApr 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management