GHSA-r72h-j7qq-v6qg

Suggest an improvement
Source
https://github.com/advisories/GHSA-r72h-j7qq-v6qg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-r72h-j7qq-v6qg/GHSA-r72h-j7qq-v6qg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r72h-j7qq-v6qg
Aliases
Downstream
CGA (37)
Published
2026-11-20T00:04:46Z
Modified
2026-11-20T00:15:06Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
NATS Server allows unauthenticated memory exhaustion through incomplete MQTT CONNECT packets
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 MQTT clients, including authentication and parsing of MQTT CONNECT packets.

Problem Description

An unauthenticated MQTT client could cause the server to retain large incomplete MQTT CONNECT packets before authentication completed.

The parser retained partial pre-authentication packet data while waiting for the advertised MQTT packet length to be completed. An attacker could therefore consume server memory until authentication timeouts closed the connections.

Affected Versions

Versions v2.14.2, v2.12.11 and below are vulnerable. The issue is fixed in v2.14.3 and v2.12.12.

Workarounds

Deployments not using MQTT are not affected. Deployments that need MQTT should upgrade to a fixed release.

References

Database specific
{
    "cwe_ids": [
        "CWE-400"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-20T00:04:46Z",
    "nvd_published_at": "2026-07-08T20:16:53Z",
    "severity": "HIGH"
}
References

Affected packages

Go / github.com/nats-io/nats-server/v2

Package

Name
github.com/nats-io/nats-server/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/nats-io/nats-server/v2

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.12.12

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-r72h-j7qq-v6qg/GHSA-r72h-j7qq-v6qg.json"

Go / github.com/nats-io/nats-server/v2

Package

Name
github.com/nats-io/nats-server/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/nats-io/nats-server/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.14.0-RC.1
Fixed
2.14.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-r72h-j7qq-v6qg/GHSA-r72h-j7qq-v6qg.json"