CVE-2022-24450
High · 8.8CVSS
8.8
EPSS
1.3%
Published
Feb 8, 2022
CISA due date
—
Cloudanix analysis
A bug lets regular users grab full admin control of the messaging server, risking exposure or disruption of all connected services.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
An authenticated user can escalate to System account privileges by abusing the dynamically provisioned sandbox accounts feature, resulting in a complete authorization bypass.
Why it matters to the business
Compromised messaging infrastructure can expose all data streams, allow service disruption, or enable full administrative takeover with minimal attacker effort.
How an attack unfolds
An attacker logs in with any valid account, then issues requests that misuse the sandbox provisioning mechanism to inherit System account rights and perform unrestricted operations.
How to fix it
Upgrade nats-server to version 2.7.2 or later (commit 135475babb917efb036dc710afb0df9d57173a82). Disable dynamic sandbox account provisioning unless explicitly required and audit all account configurations.
How to confirm the fix worked
Confirm nats-server reports version 2.7.2 or newer. Verify that non-System accounts cannot perform System-level operations after the upgrade.
Typical attack path
- Obtain valid non-System credentials
- Connect to the nats-server instance
- Issue requests that trigger sandbox account provisioning misuse
- Acquire System account privileges
- Execute administrative actions across all subjects and streams
How to detect it
Inspect nats-server logs for authentication events followed by unexpected System account operations or sandbox account creation from non-System users.
What your security team should do
- Upgrade all nats-server deployments to 2.7.2 or newer immediately
- Review and restrict use of dynamic sandbox accounts
- Implement least-privilege account policies and monitor for privilege escalation attempts
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/nats-io/nats-server | 0 | No fix |
| Go | github.com/nats-io/nats-server/v2 | 2.0.0 | 2.7.2 |
| Go | github.com/nats-io/nats-streaming-server | 0.15.0 | 0.24.1 |
| Bitnami | nats | 2.0.0 | 2.7.2 |
| Mageia:8 | nats-server | 0 | 2.1.9-1.1.mga8 |
| go | github.com/nats-io/nats-server/v2 | 2.0 | 2.7.2 |
| go | github.com/nats-io/nats-streaming-server | v0.15.0 | v0.24.1 |
Related vulnerabilities
- CVE-2026-27571 NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging… Also affects github.com/nats-io/nats-server
- CVE-2022-29946 NATS.io NATS Server before 2.8.2 and Streaming Server before 0.24.6 could allow a remote… Also affects github.com/nats-io/nats-server
- CVE-2022-26652 NATS nats-server before 2.7.4 allows Directory Traversal (with write access) via an… Also affects github.com/nats-io/nats-server
- CVE-2025-30215 NATS-Server is a High-Performance server for NATS.io, the cloud and edge native messaging… Also affects github.com/nats-io/nats-server/v2
- CVE-2023-46129 NATS.io is a high performance open source pub-sub distributed communication technology… Also affects github.com/nats-io/nats-server/v2
- CVE-2026-121728 SourceHut meta.sr.ht 0.56.11 before 0.89.0 contains an authorization bypass vulnerability… CWE-862
- CVE-2026-121730 emailflare before commit cf31f33 contains a missing authorization vulnerability in POST… CWE-862
- CVE-2026-121729 emailflare before commit cf31f33 contains a missing authorization vulnerability in the… CWE-862