VDB
Sign up
MEDIUM4.3

GHSA-8m2x-3m6q-6w8j

NATS: Message tracing can be redirected to arbitrary subject

Quick fix

GHSA-8m2x-3m6q-6w8j — github.com/nats-io/nats-server/v2: upgrade to the fixed version with the command below.

go get github.com/nats-io/nats-server/v2@v2.11.15

Details

### Background

NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing.

The nats-server supports telemetry on messages, using the per-message NATS headers.

### Problem Description

A valid client which uses message tracing headers can indicate that the trace messages can be sent to an arbitrary valid subject, including those to which the client does not have publish permission.

The payload is a valid trace message and not chosen by the attacker.

### Affected Versions

Any version before v2.12.6 or v2.11.15

### Workarounds

None.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/nats-io/nats-server/v2
Introduced in: 2.11.0Fixed in: 2.11.15
Fixgo get github.com/nats-io/nats-server/v2@v2.11.15
Go/github.com/nats-io/nats-server/v2
Introduced in: 2.12.0-preview.1Fixed in: 2.12.6
Fixgo get github.com/nats-io/nats-server/v2@v2.12.6

References