# CVE-2026-29785: NATS Server panic via malicious compression on leafnode port

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Published: 2026-03-24T21:29:06.000Z
- Modified: 2026-09-10T03:50:59.782Z
- Also known as: GHSA-52jh-2xxh-pwh6, BIT-NATS-2026-29785, GO-2026-4829
- Related: CGA-h2h5-63c6-272r
- Weaknesses: CWE-409, CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. Prior to versions 2.11.14 and 2.12.5, if the nats-server has the "leafnode" configuration enabled (not default), then anyone who can connect can crash the nats-server by triggering a panic. This happens pre-authentication and requires that compression be enabled (which it is, by default, when leafnodes are used). Versions 2.11.14 and 2.12.5 contain a fix. As a workaround, disable compression on the leafnode port.

(As written by CVE List.)

## Affected

- nats-io nats-server: < 2.11.14; >= 2.12.0-RC.1, < 2.12.5
- multicluster-globalhub/multicluster-globalhub-grafana-rhel9: no versions given (not affected: from 1779579439 before *; from 1780167118 before *; from 1778867753 before *)
- openshift4/oc-mirror-plugin-rhel9: no versions given
- github.com/nats-io/nats-server/v2 (Go): before 2.11.14; from 2.12.0-RC.1 before 2.12.5
- github.com/nats-io/nats-server (Go): all versions
- linuxfoundation nats-server: before 2.11.14; from 2.12.0 before 2.12.5
- nats (Bitnami): before 2.11.14; from 2.12.0 before 2.12.5

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/nats-io/nats-server/security/advisories/GHSA-52jh-2xxh-pwh6> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/nats-io/nats-server/commit/a1488de6f2ba6e666aef0f9cce0016f7f167d6a8> (fix, patch, web)
- <https://advisories.nats.io/CVE/secnote-2026-04.txt> (advisory, mitigation, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-29785> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2451444> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-29785.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:22347> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:23345> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:21769> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-29785> (advisory, web)
- <https://github.com/nats-io/nats-server> (package)

## Sources

- CVE List: [CVE-2026-29785](https://www.cve.org/CVERecord?id=CVE-2026-29785), CVE Terms of Use, modified 2026-09-09
- GitHub Advisory Database: [GHSA-52jh-2xxh-pwh6](https://github.com/advisories/GHSA-52jh-2xxh-pwh6), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-4829](https://pkg.go.dev/vuln/GO-2026-4829), CC-BY-4.0, modified 2026-03-31
- NVD: [CVE-2026-29785](https://nvd.nist.gov/vuln/detail/CVE-2026-29785), Public domain, modified 2026-09-09
- Bitnami Vulnerability Database: [BIT-NATS-2026-29785](https://osv.dev/vulnerability/BIT-NATS-2026-29785), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-29785 · Whole record: https://cve.day/CVE-2026-29785.json · Rebuilt by cve.day 2026-11-25T22:59:16.891Z
