CVE-2024-24559
Python vulnerability analysis and mitigation

Overview

Vyper, a Pythonic Smart Contract Language for the EVM, contains a stack management error when compiling the IR for sha3_64. The vulnerability was discovered and disclosed on February 5, 2024, affecting Vyper versions <=0.3.10, with a patch available in version 0.4.0 (GitHub Advisory).

Technical details

The vulnerability stems from an error in height variable calculation during IR compilation for sha3_64. Specifically, after compiling the 0th argument, the height variable isn't increased correctly. While withargs defined in the inner scope are manipulated correctly due to both their height and global height being off, this leads to incorrect stack placement calculations (GitHub Advisory).

Impact

The vulnerability's impact is considered low as it cannot be triggered through regular Vyper code compilation. The issue only manifests when using the fang binary (formerly called vyper-ir prior to v0.3.4) directly with hand-written IR code (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Vyper version 0.4.0 through pull request #4063. Users should upgrade to this version or newer to receive the fix (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22871HIGH8.7
  • PythonPython
  • guarddog
NoYesJan 13, 2026
GHSA-58pv-8j8x-9vj2HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 13, 2026
CVE-2026-22779MEDIUM6.3
  • PythonPython
  • blacksheep
NoYesJan 14, 2026
CVE-2026-21889LOW2.3
  • PythonPython
  • weblate
NoYesJan 14, 2026
CVE-2025-68492LOW2.3
  • PythonPython
  • chainlit
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management