# Vyper sha3 codegen bug

Advisory record · `GHSA-6845-xw22-ffxv`

- **Identifiers:** `GHSA-6845-xw22-ffxv` · `CVE-2024-24559` · `PYSEC-2024-147`
- **State:** Confirmed
- **Severity:** CVSS 3.7 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-327](https://cwe.mitre.org/data/definitions/327.html)
- **Tags:** [Weak cryptography or TLS](https://agentprime.io/advisories/tag/weak-crypto.md)
- **Published:** 5 Feb 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 5 Feb 2024, 19:21 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `vyper` (PyPI): affected `<0.4.0`; fixed in `0.4.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Vyper versions before 0.4.0 have a stack-management bug in how the compiler handles the IR for sha3_64, where a stack height value is miscalculated. An attacker would need to write IR by hand and compile it directly with the fang binary, since regular Vyper code cannot trigger it; the impact is considered low. Upgrade to Vyper 0.4.0 or later.

Written 5 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 3.7 Low, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0026, the 17th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:35 UTC: First seen by agentprime
- 31 Oct 2026, 14:35 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-6845-xw22-ffxv)

## Sources

- [GitHub Advisory Database: GHSA-6845-xw22-ffxv](https://github.com/advisories/GHSA-6845-xw22-ffxv)
- [OSV: GHSA-6845-xw22-ffxv](https://osv.dev/vulnerability/GHSA-6845-xw22-ffxv)
- <https://github.com/vyperlang/vyper/security/advisories/GHSA-6845-xw22-ffxv>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24559>
- <https://github.com/vyperlang/vyper/pull/4063>
- <https://github.com/vyperlang/vyper/commit/d9f9fdadd81a148cbc68f02dbbbcdc0c92fad652>
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-147.yaml>
- <https://github.com/vyperlang/vyper>
- <https://github.com/vyperlang/vyper/blob/c150fc49ee9375a930d177044559b83cb95f7963/vyper/ir/compile_ir.py#L585-L586>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-6845-xw22-ffxv>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-6845-xw22-ffxv/>. Everything for agents: <https://agentprime.io/llms.txt>.
