CVE-2023-42460: Vyper - Incorrect Bounds Checking in _abi_decode() Function

vyper Updated 02 Oct 2025

Summary

27/09/2023
Yes i
Moderate
7.5

CVE-2023-42460: Vyper is a Pythonic Smart Contract Language for the EVM. Affects vyper versions >= 0.3.4, < 0.3.10. Fixed in 0.3.10. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Vyper is a Pythonic Smart Contract Language for the EVM. It is designed to be secure and easy to audit. The language is specifically tailored for Ethereum smart contracts and aims to provide a higher level of safety compared to Solidity. Vyper contracts are compiled to EVM bytecode and can be deployed on the Ethereum blockchain. However, a vulnerability has been identified in Vyper versions 0.3.4 to 0.3.9 that affects the _abi_decode() function. This function is responsible for decoding ABI-encoded data in Vyper contracts. The vulnerability allows for bounds checking to be bypassed, leading to incorrect results and potential security issues.

Vulnerability Detail

The vulnerability in Vyper's _abi_decode() function arises from a lack of input validation when it is nested in an expression. This allows for the construction of inputs that can bypass bounds checking and produce incorrect results. An attacker could potentially exploit this vulnerability to manipulate contract data and compromise the integrity of smart contracts deployed using Vyper. The impact of this vulnerability can vary depending on the specific usage of _abi_decode(), but it has the potential to result in financial losses, unauthorized access, or other security breaches.

How To Fix

Latest published version: 0.4.3 as of 22 Oct 2026

pip install --upgrade "vyper==0.4.3"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.3.10

This is the first release that contains the fix.

pip install --upgrade "vyper==0.3.10"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

At present, there is no known workaround for this vulnerability. It is recommended to follow the official Vyper channels for updates on the release of version 0.3.10, which will include the fix for this issue.

Conclusion

The vulnerability in Vyper's _abi_decode() function can allow for bounds checking to be bypassed, resulting in incorrect results and potential security breaches. Users of Vyper are advised to update to version 0.3.10, which is expected to include a fix for this vulnerability. Regularly checking for updates and promptly applying them is crucial to ensure the security and stability of Vyper contracts. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for vyper →

Share this vulnerability

FAQ

Vyper is a Pythonic Smart Contract Language for the EVM. It is designed to provide a higher level of safety and security compared to Solidity.

The _abi_decode() function is responsible for decoding ABI-encoded data in Vyper contracts.

Vyper versions 0.3.4 to 0.3.9 are affected by this vulnerability.

The vulnerability can lead to incorrect results and potential security breaches, including financial losses and unauthorized access.

A fix is expected to be included in the upcoming release, version 0.3.10. Users are advised to update to this version as soon as it becomes available.

Related vulnerabilities

Recent vulnerabilities recorded for vyper.

How To Fix

Latest published version: 0.4.3 as of 22 Oct 2026

pip install --upgrade "vyper==0.4.3"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.3.10

This is the first release that contains the fix.

pip install --upgrade "vyper==0.3.10"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback