The JWT library in NATS nats-server before 2.1.9 allows a denial of service (a nil dereference in Go code).
cve-program · CVE-2020-26521
PublishedThe JWT library in NATS nats-server before 2.1.9 allows a denial of service (a nil dereference in Go code).
Read the publisher's advisoryeuvd · EUVD-2022-1028
PublishedThe JWT library in NATS nats-server before 2.1.9 allows a denial of service (a nil dereference in Go code).
Read the publisher's advisorynvd · CVE-2020-26521
PublishedThe JWT library in NATS nats-server before 2.1.9 allows a denial of service (a nil dereference in Go code).
Read the publisher's advisoryosv · GHSA-h2fg-54x9-5qhq
Published## Problem Description The NATS account system has an Operator trusted by the servers, which signs Accounts, and each Account can then create and sign Users within their account. The Operator should be able to safely issue Accounts to other entities which it does not fully trust. A malicious Account could create and sign a User JWT with a state not created by the normal tooling, such that decoding by the NATS JWT library (written in Go) would attempt a nil dereference, aborting execution. The NATS Server is known to be impacted by this. ## Affected versions #### JWT library * all versions prior to 1.1.0 #### NATS Server * Version 2 prior to 2.1.9 ## Impact #### JWT library * Programs would nil dereference and panic, aborting execution by default. #### NATS server * Denial of Service caused by process termination ## Workaround If your NATS servers do not trust any accounts which are managed by untrusted entities, then malformed User credentials are unlikely to be encountered. ## Solution Upgrade the JWT dependency in any application using it. Upgrade the NATS server if using NATS Accounts.
Read the publisher's advisoryosv · GHSA-hmm9-r2m2-qg9w
Published(This advisory is canonically <https://advisories.nats.io/CVE/CVE-2020-26521.txt>) ## Problem Description The NATS account system has an Operator trusted by the servers, which signs Accounts, and each Account can then create and sign Users within their account. The Operator should be able to safely issue Accounts to other entities which it does not fully trust. A malicious Account could create and sign a User JWT with a state not created by the normal tooling, such that decoding by the NATS JWT library (written in Go) would attempt a nil dereference, aborting execution. The NATS Server is known to be impacted by this. ## Affected versions #### JWT library * all versions prior to 1.1.0 #### NATS Server * Version 2 prior to 2.1.9 ## Impact #### JWT library * Programs would nil dereference and panic, aborting execution by default. #### NATS server * Denial of Service caused by process termination ## Workaround If your NATS servers do not trust any accounts which are managed by untrusted entities, then malformed User credentials are unlikely to be encountered. ## Solution Upgrade the JWT dependency in any application using it. Upgrade the NATS server if using NATS Accounts.
Read the publisher's advisoryosv · GO-2022-0402
PublishedA malicious account can create and sign a User JWT which causes a panic when decoded by the NATS JWT library.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2020-26521 · CVE overview and exploitation status
cve-program · CVE-2020-26521
- https://github.com/nats-io/nats-server/commits/master
- http://www.openwall.com/lists/oss-security/2020/11/02/2
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI/
euvd · EUVD-2022-1028
- https://github.com/nats-io/nats-server/commits/master
- http://www.openwall.com/lists/oss-security/2020/11/02/2
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI/
nvd · CVE-2020-26521
- http://www.openwall.com/lists/oss-security/2020/11/02/2
- https://github.com/nats-io/nats-server/commits/master
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI/
osv · GHSA-h2fg-54x9-5qhq
- https://github.com/nats-io/jwt/security/advisories/GHSA-h2fg-54x9-5qhq
- https://nvd.nist.gov/vuln/detail/CVE-2020-26521
- https://github.com/nats-io/jwt/pull/107
- https://github.com/nats-io/nats-server/commit/9ff8bcde2e46009e98bd9e88f598af355f62c168
- https://advisories.nats.io/CVE/CVE-2020-26521.txt
- https://github.com/nats-io/jwt
- https://github.com/nats-io/nats-server/commits/master
- https://lists.fedoraproject.org/archives/list/[email protected]/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI
- https://pkg.go.dev/vuln/GO-2022-0402
- http://www.openwall.com/lists/oss-security/2020/11/02/2
osv · GHSA-hmm9-r2m2-qg9w
- https://github.com/nats-io/nats-server/security/advisories/GHSA-hmm9-r2m2-qg9w
- https://nvd.nist.gov/vuln/detail/CVE-2020-26521
- https://github.com/nats-io/jwt/pull/107
- https://advisories.nats.io/CVE/CVE-2020-26521.txt
- https://github.com/nats-io/nats-server
- https://lists.fedoraproject.org/archives/list/[email protected]/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI
- https://www.openwall.com/lists/oss-security/2020/11/02/2
osv · GO-2022-0402
Related changes
Linked by CVE identifierNo related changes are available here.