1. Archivio CVE
  2. 2025
  3. CVE-2025-27104

CVE-2025-27104

7.5 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 7.5 – Alta

Descrizione

vyper is a Pythonic Smart Contract Language for the EVM. Multiple evaluation of a single expression is possible in the iterator target of a for loop. While the iterator expression cannot produce multiple writes, it can consume side effects produced in the loop body (e.g. read a storage variable updated in the loop body) and thus lead to unexpected program behavior. Specifically, reads in iterators which contain an ifexp (e.g. `for s: uint256 in ([read(), read()] if True else [])`) may interleave reads with writes in the loop body. Vyper for loops allow two kinds of iterator targets, namely the `range()` builtin and an iterable type, like SArray and DArray. During codegen, iterable lists are required to not produce any side-effects (in the following code, `range_scope` forces `iter_list` to be parsed in a constant context, which is checked against `is_constant`). However, this does not prevent the iterator from consuming side effects provided by the body of the loop. For SArrays on the other hand, `iter_list` is instantiated in the body of a `repeat` ir, so it can be evaluated several times. This issue is being addressed and is expected to be available in version 0.4.1. Users are advised to upgrade as soon as the patched release is available. There are no known workarounds for this vulnerability.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
vyperlang vyper < 0.4.1 python
Tutte le 53 vulnerabilità di Vyperlang Vyper

Tipo di vulnerabilità

CWE-662 Improper Synchronization

The product utilizes multiple threads, processes, components, or systems to allow temporary access to a shared resource that can only be exclusive to one process at a time, but it does not properly synchronize these actions, which might cause simultaneous accesses of this resource by multiple threads or processes.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Altro Modificare i dati dell’applicazione, Modificare la memoria, Leggere i dati dell’applicazione, Alterare la logica di esecuzione
Disponibilità Interruzione del servizio: arresto o riavvio, Interruzione del servizio: instabilità

Come si previene

Sviluppo Use industry standard APIs to synchronize your code.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 64 CVE di tipo CWE-662, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org