Vyper Hack

TOTAL LOST $50.5M
High #125 All-Time Reentrancy

Summarize with AI

Affected Chain 2023 Incident surface
Recovered $6.8M 13.5% returned
All-Time Rank #125 By amount stolen
Protocol Type Exploit/Reentrancy Target category

Incident Overview

Vulnerability in Vyper Compiler exploited, causing a loss of 50,476,970 USD across multiple projects.

The Vyper Compiler, a tool designed for writing smart contracts on EVM-compatible chains, suffered a significant exploit due to a vulnerability in versions 0.2.15 to 0.3.0. Independent security researchers confirmed that the vulnerability was fixed since version 0.3.1. The root cause was separate Reentrancy Lock slots in add_liquidity and remove_liquidity functions in Curve Pools, implemented in the vulnerable Vyper versions, allowing a reentrancy attack.

This exploit affected several projects including MetronomeDAO, JPEG'd, Alchemix, and Curve Pools, resulting in a combined loss of 50,476,970 USD. Some funds were returned, totaling 6,820,757 USD.

Curve Pools:

Exploiters:

https://etherscan.io/address/0xb752def3…41b324

https://etherscan.io/address/0xc0ffeeba…f29671

Malicious Transactions:

https://etherscan.io/tx/0xcd99fadd…ae2052

https://etherscan.io/tx/0x2e7dc8b2…ae477c

Funds Returning Transaction:

https://etherscan.io/tx/0xb7675412…0954fd

JPEG'd:

Exploiter:

https://etherscan.io/address/0x6ec21d18…978538

Malicious Transaction:

https://etherscan.io/tx/0xa84aa065…f1620c

Alchemix:

Exploiter:

https://etherscan.io/address/0xdce5d6b4…75d7d8

Malicious Transaction:

https://etherscan.io/tx/0xb676d789…3c9801

MetronomeDAO:

Exploiter:

https://etherscan.io/address/0xc0ffeeba…f29671

Malicious Transaction:

https://etherscan.io/tx/0xc93eb238…400964

Funds Returning Transaction:

https://etherscan.io/tx/0x650a73bf…469f9a

Incident Report

Protocol / Project Vyper
Date of Incident
Attack Technique Reentrancy
Classification Exchange (DEX)

Protocol Information

Protocol Type Exploit/Reentrancy
Official Website docs.vyperlang.org/
Protocol Twitter/X @vyperlang
Team Anonymous
Source Code Verified On-Chain

Market Context at Time of Hack

Token Categories
Mineable Hybrid - PoW & PoS Scrypt

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Deep understanding of reentrancy and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Vyper's contract logic - root cause: exchange (dex)
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Yes — skilled auditors routinely flag Reentrancy vulnerabilities in code review

If you're auditing a protocol with similar architecture to Vyper, these are the critical security checks that could have prevented this incident (July 2023).

  • Verify all logic paths related to Reentrancy are guarded by proper access controls and input validation - see the Reentrancy attack class for patterns
  • Check that all state-changing functions follow the Checks-Effects-Interactions (CEI) pattern to prevent reentrancy and logic ordering bugs
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Funds Recovery

13.5%

Recovered

$6.8M

Net Loss

43662579

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Reentrancy examples →

Sources & References

Learn to Prevent the Next Vyper

The Vyper hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial