Advisory

GHSA-4mrx-6fxm-8jpg

Also known as: CVE-2022-24788, PYSEC-2022-197

Summary

Buffer Overflow in vyper

Details

Impact
Importing a function from a JSON interface which returns bytes generates bytecode which does not clamp bytes length, potentially resulting in a buffer overrun.

Patches
0.3.2 (as of https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b)

Workarounds
Use .vy interfaces.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-04-20 20:31 UTC
Modified
2024-11-19 16:23 UTC

Affected packages and fixes

vyper

PyPI · All systems

Affected

  • introduced 0, fixed 0.3.2 (ecosystem)

Fixed versions

0.3.2

Fix

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

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences