Skip to content

CVE-2020-37288 Vyper 0.1.0b10 before 0.2.3 Invalid Jump Destination via Return in Nested Loops

MediumCVSS 6.3 EPSS 0.35%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

Vyper from 0.1.0b10 before 0.2.3 generates incorrect code for a return statement inside a for loop in an internal function called two or more internal calls deep, producing an invalid jump destination (stack underflow). Affected contracts revert such calls unnecessarily, which in limited circumstances could enable denial of service against public contracts.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
pypi vyper >= 0.1.0b10, < 0.2.3 0.2.3 Fixed
pypi vyper(PyPI) = 0.1.0b10; = 0.1.0b11; = 0.1.0b12; = 0.1.0b13 +7 more 0.2.3 Fixed

Affected products

ProductAffected versionsFixed in
pypi vyper(PyPI) >= 0.1.0b10, < 0.2.3 0.2.3
pypi vyper(PyPI) = 0.1.0b10 No fix listed
pypi vyper(PyPI) = 0.1.0b11 No fix listed
pypi vyper(PyPI) = 0.1.0b12 No fix listed
pypi vyper(PyPI) = 0.1.0b13 No fix listed
pypi vyper(PyPI) = 0.1.0b14 No fix listed
pypi vyper(PyPI) = 0.1.0b15 No fix listed
pypi vyper(PyPI) = 0.1.0b16 No fix listed
pypi vyper(PyPI) = 0.1.0b17 No fix listed
pypi vyper(PyPI) = 0.2.1 No fix listed
pypi vyper(PyPI) = 0.2.2 No fix listed
pypi vyper >= 0.1.0b10, < 0.2.3 0.2.3

References