CVE-2020-26892 Incorrect handling of credential expiry by /nats-io/nats-server

Critical 9.8 Published Updated

Attackers can bypass authentication in NATS server by exploiting improper handling of expired JWT credentials, allowing unauthorized access.

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-26892?

CVE-2020-26892 is a critical authentication bypass 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 has Incorrect Access Control because of how expired credentials are handled.

Weakness: CWE-798

Which versions are affected by CVE-2020-26892?

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-26892?

Upgrade github.com/nats-io/jwt to 1.1.0 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2020-26892 being exploited?

There is no known exploitation of CVE-2020-26892 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-26892, GHSA-2c64-vj8g-vwrq, GHSA-4w5x-x539-ppf5, GO-2022-0380, UBUNTU-CVE-2020-26892.

Is CVE-2020-26892 in your software?

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

Check your SBOMs for free