Cloudanix VulnDB

CVE-2022-24450

High · 8.8

CVSS

8.8

EPSS

1.3%

Published

Feb 8, 2022

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

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

  1. Obtain valid non-System credentials
  2. Connect to the nats-server instance
  3. Issue requests that trigger sandbox account provisioning misuse
  4. Acquire System account privileges
  5. 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