Advisory

PYSEC-2023-131

Also known as: CVE-2023-30629, GHSA-w9g2-3w7p-72g9

Summary

The record has no summary.

Details

Vyper is a Pythonic Smart Contract Language for the ethereum virtual machine. In versions 0.3.1 through 0.3.7, the Vyper compiler generates the wrong bytecode. Any contract that uses the raw_call with revert_on_failure=False and max_outsize=0 receives the wrong response from raw_call. Depending on the memory garbage, the result can be either True or False. A patch is available and, as of time of publication, anticipated to be part of Vyper 0.3.8. As a workaround, one may always put max_outsize>0.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Dates

Published
2023-04-24 22:15 UTC
Modified
2023-11-08 04:12 UTC

Affected packages and fixes

vyper

PyPI · All systems

Affected

  • introduced 0.3.1, fixed 0.3.8 (ecosystem)

Fixed versions

0.3.8

Fix

  • Fixed version 0.3.8
    pip install --upgrade vyper==0.3.8

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences