CVE-2020-26521 Nil dereference in NATS JWT, DoS of nats-server

High 7.5 Published Updated

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.

PackageAffectedFixed in
github.com/nats-io/jwt GoAll versions1.1.0
github.com/nats-io/jwt GoAll versions1.1.0
github.com/nats-io/jwt GoAll versions1.1.0
github.com/nats-io/nats-server/v2 GoAll versions2.1.9
github.com/nats-io/nats-server/v2 GoAll versions2.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.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-26521, GHSA-h2fg-54x9-5qhq, GHSA-hmm9-r2m2-qg9w, GO-2022-0402, UBUNTU-CVE-2020-26521.

Is CVE-2020-26521 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free