Advisory

PYSEC-2025-31

Also known as: CVE-2025-27105, GHSA-4w26-8p97-f4jp

Summary

The record has no summary.

Details

vyper is a Pythonic Smart Contract Language for the EVM. Vyper handles AugAssign statements by first caching the target location to avoid double evaluation. However, in the case when target is an access to a DynArray and the rhs modifies the array, the cached target will evaluate first, and the bounds check will not be re-evaluated during the write portion of the statement. This issue has been addressed in version 0.4.1 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Severity

Not rated by the source.

Dates

Published
2025-02-21 22:15 UTC
Modified
2025-04-09 17:59 UTC

Affected packages and fixes

vyper

PyPI · All systems

Affected

  • introduced 0, fixed 0.4.1 (ecosystem)

Fixed versions

0.4.1

Fix

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

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