Skip to content

No bytes clamps for interfaces imported via JSON

Moderate
charles-cooper published GHSA-4mrx-6fxm-8jpg Apr 13, 2022

Package

pip vyper (pip)

Affected versions

<=0.3.1

Patched versions

0.3.2

Description

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 049dbdc)

Workarounds

Use .vy interfaces.

Severity

Moderate

CVE ID

CVE-2022-24788

Weaknesses

No CWEs