# CVE-2021-32026: NATS server TLS missing ciphersuite settings when CLI flags used

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Aliases:** GHSA-jj54-5q2m-q7pj, GO-2024-2850
- **Published:** 2024-05-14T22:03:51.000Z
- **Modified:** 2026-09-10T03:49:18.741Z

## Who should check

- Projects that depend on Go package github.com/nats-io/nats-server/v2 (\< 2.2.3)
- Projects that depend on Go package github.com/nats-io/nats-server

## Description

(This advisory is canonically \<https://advisories.nats.io/CVE/CVE-2021-32026.txt\>)

\#\#\# Problem Description

The NATS server by default uses a restricted set of modern ciphersuites for TLS.  This selection can be overridden through configuration. The defaults include just RSA and ECDSA with either AES/GCM with a SHA2 digest or ChaCha20/Poly1305.

The configuration system allows for extensive use of CLI options to override configuration settings.  When using these to set a key/cert for TLS, the restricted ciphersuite settings were lost, enabling all ciphersuites supported by Go by default.

None of these additional ciphersuites are broken, so the NATS maintainers have fixed this in public git and the next release is not being hurried, nor is this security advisory embargoed.


\#\#\# Affected versions

NATS Server:
 \* All versions prior to 2.2.3
 \* fixed with nats-io/nats-server commit ffccc2e1bd (2021-04-29)


\#\#\# Impact

If a server administrator chooses to start the nats-server with TLS configuration parameters provided on the command-line, then clients can negotiate TLS ciphersuites which were not expected.


\#\#\# Workaround

Use a configuration file to set the TLS parameters instead of command-line options.


\#\#\# Solution

Upgrade the NATS server.


\#\#\# Credits

This issue was identified and reported by SimCorp.

## Affected and fixed versions

- Go `github.com/nats-io/nats-server/v2`: affected \< 2.2.3; fixed 2.2.3 (osv)
- Go `github.com/nats-io/nats-server`: affected see advisory; fixed no fix listed yet (osv)

## Mitigation

- Upgrade github.com/nats-io/nats-server/v2 to 2.2.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-32026. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-32026.md
Affected: github.com/nats-io/nats-server/v2 < 2.2.3; github.com/nats-io/nats-server
Fixed in: 2.2.3

Steps:
1. Search this machine and project for github.com/nats-io/nats-server/v2 (Go), github.com/nats-io/nats-server (Go): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-32026 being exploited?

There is no confirmed exploitation: CVE-2021-32026 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2021-32026?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2021-32026?

github.com/nats-io/nats-server/v2 \< 2.2.3; github.com/nats-io/nats-server.

### Is there a fix for CVE-2021-32026?

Yes. Fixed in 2.2.3. Upgrade github.com/nats-io/nats-server/v2 to 2.2.3 or later.

### How do I check if I'm affected by CVE-2021-32026?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/nats-io/nats-server/security/advisories/GHSA-jj54-5q2m-q7pj>
- patch: <https://github.com/nats-io/nats-server/commit/ffccc2e1bd7aa2466bd9e631e976bfd7ca46f225>
- other: <https://advisories.nats.io/>
- other: <https://advisories.nats.io/CVE/CVE-2021-32026.txt>
- other: <https://github.com/nats-io/nats-server>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-jj54-5q2m-q7pj> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2850> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-32026> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-32026>
