CVE-2021-32026: Github.com/nats io/nats server/v2 NATS Server TLS Missing Ciphersuite Vulnerability
LOWCVE-2021-32026 is a LOW nats server tls missing ciphersuite vulnerability (General Security Weakness) affecting Github.com/nats io/nats server/v2 libraries in the Go ecosystem. The issue involves nats server tls missing ciphersuite settings when cli flags used. Remediation is available by upgrading affected packages to version 2.2.3.
CVE-2021-32026 at a Glance
How to Fix CVE-2021-32026
To remediate this vulnerability, upgrade all affected Github.com/nats io/nats server/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/nats-io/nats-server/v2 to 2.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/nats-io/nats-server/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-32026, inspect your project dependencies for Github.com/nats io/nats server/v2:
inspect dependencies for github.com/nats-io/nats-server/v2
Analyze the terminal output to locate any version of Github.com/nats io/nats server/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Github.com/nats io/nats server/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-32026 Affected Github.com/nats io/nats server/v2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/nats-io/nats-server/v2
|
Go |
< 2.2.3
|
2.2.3
|
References
Frequently Asked Questions
What is CVE-2021-32026?
Which Github.com/nats io/nats server/v2 versions are affected?
What version fixes CVE-2021-32026?
Is github.com/nats-io/nats-server/v2 affected?
What CWE is associated with CVE-2021-32026?
How can I check Go dependencies for CVE-2021-32026?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jj54-5q2m-q7pj",
"modified" : "2024-05-21T20:34:18Z",
"published" : "2024-05-14T22:03:51Z",
"aliases" : [ "CVE-2021-32026" ],
"summary" : "NATS server TLS missing ciphersuite settings when CLI flags used",
"details" : "(This advisory is canonically <https://advisories.nats.io/CVE/CVE-2021-32026.txt>)\n\n### Problem Description\n\nThe 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.\n\nThe 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.\n\nNone 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.\n\n\n### Affected versions\n\nNATS Server:\n * All versions prior to 2.2.3\n * fixed with nats-io/nats-server commit ffccc2e1bd (2021-04-29)\n\n\n### Impact\n\nIf 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.\n\n\n### Workaround\n\nUse a configuration file to set the TLS parameters instead of command-line options.\n\n\n### Solution\n\nUpgrade the NATS server.\n\n\n### Credits\n\nThis issue was identified and reported by SimCorp.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/nats-io/nats-server/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nats-io/nats-server/security/advisories/GHSA-jj54-5q2m-q7pj"
}, {
"type" : "WEB",
"url" : "https://github.com/nats-io/nats-server/commit/ffccc2e1bd7aa2466bd9e631e976bfd7ca46f225"
}, {
"type" : "WEB",
"url" : "https://advisories.nats.io"
}, {
"type" : "WEB",
"url" : "https://advisories.nats.io/CVE/CVE-2021-32026.txt"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nats-io/nats-server"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-14T22:03:51Z",
"nvd_published_at" : null
}
}