CVE-2026-33222
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-33222 is an authorization bypass vulnerability in NATS-Server's JetStream Management API, titled "JetStream: Stream restore endpoint auth bypass." It affects all versions of github.com/nats-io/nats-server/v2 prior to 2.11.15 and prior to 2.12.6 (including the 2.12.0-RC.1 through 2.12.5 range). The vulnerability was published on March 24, 2026, and assigned a CVSS v3.1 base score of 4.9 (Medium) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is improper authorization (CWE-285) combined with authorization bypass through user-controlled key (CWE-639) in the JetStream stream restore endpoint. When a user is granted JetStream admin API access scoped to restoring a specific stream, the server fails to enforce that the restore operation targets only the permitted stream name — allowing the user to supply an arbitrary stream name as a user-controlled parameter and restore data to streams they should not have access to. Exploitation requires network access and a high-privilege account (JetStream admin API credentials), but no user interaction or complex conditions are needed (GitHub Advisory, NATS Advisory).

Impact

Successful exploitation allows an authenticated attacker with limited JetStream restore permissions to overwrite or corrupt data in streams beyond their authorized scope, resulting in a high integrity impact. There is no confidentiality or availability impact per the CVSS assessment, meaning the attacker cannot directly read protected stream data but can tamper with it. In environments where stream data isolation is a security boundary (e.g., multi-tenant deployments), this could lead to unauthorized data modification affecting other tenants or services (GitHub Advisory, Red Hat Bugzilla).

Exploitability

No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported as of the time of writing. The EPSS score is approximately 0.009% (1st percentile), indicating a very low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is limited to users who already hold JetStream admin API credentials, significantly constraining the attacker pool (GitHub Advisory).

Exploitation steps

  1. Obtain JetStream Admin Credentials: Acquire credentials for a NATS user account that has been granted JetStream restore API permissions, even if scoped to a specific stream.
  2. Connect to NATS Server: Establish a connection to the target NATS server using a NATS client library or CLI tool (e.g., nats CLI) authenticated with the obtained credentials.
  3. Identify Target Streams: Enumerate available JetStream streams on the server to identify streams the attacker should not have access to (e.g., streams belonging to other tenants or services).
  4. Craft Malicious Restore Request: Issue a JetStream stream restore API call, substituting the target stream name (one the attacker is not authorized to modify) in place of the permitted stream name in the request payload.
  5. Overwrite Target Stream Data: The server, failing to validate the stream name against the user's permissions, processes the restore operation and overwrites data in the unauthorized stream with attacker-controlled content (GitHub Advisory, NATS Advisory).

Indicators of compromise

  • Logs: NATS server logs showing stream restore operations ($JS.API.STREAM.RESTORE.*) initiated by a user account targeting stream names outside their expected permission scope.
  • Logs: Unexpected stream restore activity from accounts that have limited or scoped JetStream permissions, particularly targeting streams owned by other users or services.
  • Network: Unusual JetStream management API traffic patterns, such as a single client account performing restore operations across multiple distinct stream names in a short time window.
  • Application: Unexpected changes to stream data content or metadata in JetStream streams that were not explicitly restored by their owners.

Mitigation and workarounds

Upgrade NATS-Server to version 2.11.15 or 2.12.6, which contain the fix for this vulnerability. As an immediate workaround for deployments that cannot upgrade promptly, administrators should temporarily revoke JetStream restore permissions from any users who have been granted limited/scoped restore access, until the patch can be applied. Organizations not using scoped JetStream restore permissions are not exposed to this specific bypass (GitHub Advisory, NATS Advisory).

Community reactions

The vulnerability was published by philpennock to the nats-io/nats-server GitHub repository on March 24, 2026, and reviewed the same day. Red Hat tracked it via Bugzilla (Bug 2451480) and OpenSUSE issued a security announcement referencing the issue. No significant broader media coverage or notable researcher commentary beyond the official advisory has been identified (Red Hat Bugzilla, GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

nats-server

Affected

sid

nats-server: 2.12.6-1

Fixed

trixie

nats-server

Affected

Ubuntu

Unknown

devel

nats-server

Unknown

noble

nats-server

Unknown

noble (esm-apps)

nats-server

Unknown

resolute

nats-server

Unknown

resolute (esm-apps)

nats-server

Unknown

RHEL / CentOS

Affected

OpenShift

openshift4/oc-mirror-plugin-rhel9

Affected

Alpine

Fixed

edge

nats-server: 2.12.6-r0

Fixed

v3.23

nats-server: 2.12.6-r0

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86738CRITICAL9.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86734HIGH7.1
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86735MEDIUM5.9
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86737MEDIUM5.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86736MEDIUM5.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management