NATS has MQTT plaintext password disclosure
nats-io nats-server
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/nats-io/nats-server/v2 Go |
|
|
| github.com/nats-io/nats-server Go |
| No fix yet |
nats-io nats-server
| Product | Affected | Fixed in |
|---|---|---|
| github.com/nats-io/nats-server/v2 Go |
|
|
| github.com/nats-io/nats-server Go |
| No fix yet |
NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. Prior to versions 2.11.15 and 2.12.6, for MQTT deployments using usercodes/passwords: MQTT passwords are incorrectly classified as a non-authenticating identity statement (JWT) and exposed via monitoring endpoints. Versions 2.11.14 and 2.12.6 contain a fix. As a workaround, ensure monitoring end-points are adequately secured. Best practice remains to not expose the monitoring endpoint to the Internet or other untrusted network users.
From the CVE record · GitHub_M
In NATS-Server MQTT deployments using usercodes and passwords, monitoring endpoints can expose MQTT passwords because the server misclassifies them as non-authenticating identity statements. A network user who can access those endpoints may see the passwords; no user interaction is required.
Operators using MQTT usercodes and passwords should check github.com/nats-io/nats-server/v2 versions before 2.11.15 or from 2.12.0-RC.1 through versions before 2.12.6, and any version of the unversioned github.com/nats-io/nats-server package.