BreachSpiderVerified, not vibes

CVE-2025-27104 in Vyperlang Vyper

High 7.5

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 b...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
CVSS v42.3
EPSS0.8%
EPSS percentile54th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Vyperlang Vyper < 0.4.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-27104
BreachSpider IDBS-2025-GLOBAL-248640-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2025-02-21
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-662: CWE-662

Related attack patterns (CAPEC)

CAPEC-27 Leveraging Race Conditions via Symbolic Links via CWE-662

CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-662

CAPEC-25 Forced Deadlock via CWE-662

CAPEC-26 Leveraging Race Conditions via CWE-662

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2025-27104 affects the Vyper smart contract language, allowing multiple evaluations of a single expression in the iterator target of a for loop, which can lead to unexpected program behavior due to side effects.

An attacker can exploit this vulnerability by writing smart contracts that rely on the iterator expression in a for loop to read storage variables updated within the loop body, leading to inconsistent or unintended behavior.

Questions

What is CVE-2025-27104?

CVE-2025-27104 affects the Vyper smart contract language, allowing multiple evaluations of a single expression in the iterator target of a for loop, which can lead to unexpected program behavior due to side effects.

What is the CVSS score for CVE-2025-27104?

CVE-2025-27104 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.8%.

Is CVE-2025-27104 actively exploited?

No confirmed active exploitation of CVE-2025-27104 as of 2026-09-25.

How do I remediate CVE-2025-27104?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2025-27104?

CVE-2025-27104 affects Vyperlang Vyper.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Vyperlang","product":"Vyper","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.