CVE-2020-26521 Nil dereference in NATS JWT, DoS of nats-server
A nil dereference in the NATS server JWT library allows attackers to cause a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-26521?
CVE-2020-26521 is a high-severity vulnerability in Fedoraproject Fedora, published on 6 Nov 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The JWT library in NATS nats-server before 2.1.9 allows a denial of service (a nil dereference in Go code).
Weakness: CWE-476
Which versions are affected by CVE-2020-26521?
5 open source packages ship an affected version, including github.com/nats-io/jwt and github.com/nats-io/nats-server/v2. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/nats-io/jwt Go | All versions | 1.1.0 |
github.com/nats-io/jwt Go | All versions | 1.1.0 |
github.com/nats-io/jwt Go | All versions | 1.1.0 |
github.com/nats-io/nats-server/v2 Go | All versions | 2.1.9 |
github.com/nats-io/nats-server/v2 Go | All versions | 2.1.9 |
Products include Fedoraproject Fedora, Linuxfoundation Nats-Server.
How do I fix CVE-2020-26521?
Upgrade github.com/nats-io/jwt to 1.1.0 or later.
Is CVE-2020-26521 being exploited?
There is no known exploitation of CVE-2020-26521 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2020-26521, GHSA-h2fg-54x9-5qhq, GHSA-hmm9-r2m2-qg9w, GO-2022-0402, UBUNTU-CVE-2020-26521.