Historical retrospective · Security

A Vyper compiler bug contributed to a DeFi reentrancy crisis

In July 2023 a bug affecting specific Vyper compiler versions was linked to reentrancy vulnerabilities in several Curve pools and other contracts.

Event / milestone year: 2023First published

The episode showed that smart-contract risk can originate in compilers and shared tooling, not only application code.

It renewed interest in compiler version pinning, reproducible builds and dependency auditing.

Audits need to include toolchains and deployed bytecode; reviewing source code alone may miss compiler-specific behavior.

Primary source

This retrospective summarizes the source below in original language and links to the primary record used for the briefing. This is not investment, legal or security advice.

Vyper security notice ↗