Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. vyper
  4. ›
  5. CVE-2025-27104

CVE-2025-27104: Vyper has a double eval in For List Iter

February 21, 2025 (updated October 31, 2025)

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.

The fix is tracked in https://github.com/vyperlang/vyper/pull/4488.

References

  • github.com/advisories/GHSA-h33q-mhmp-8p67
  • github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2025-30.yaml
  • github.com/vyperlang/vyper
  • github.com/vyperlang/vyper/pull/4488
  • github.com/vyperlang/vyper/security/advisories/GHSA-h33q-mhmp-8p67
  • nvd.nist.gov/vuln/detail/CVE-2025-27104

Code Behaviors & Features

Detect and mitigate CVE-2025-27104 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.4.1

Fixed versions

  • 0.4.1

Solution

Upgrade to version 0.4.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-662: Improper Synchronization

Source file

pypi/vyper/CVE-2025-27104.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:50 +0000.