Vyper fund trapping in create_from_blueprint offset handling
vyperlang vyper
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| vyperlang vyper |
| No fix yet |
Original description
Vyper 0.3.4 through 0.5.0b1 computes the remaining blueprint size in create_from_blueprint by uint256 subtraction without first checking that code_offset is below the blueprint's code size, so a huge offset wraps to a small positive value. An attacker controlling code_offset can make a factory deploy contracts with no runtime code, potentially trapping ETH and tokens.
From the CVE record · VulnCheck