CVE-2020-26892 Incorrect handling of credential expiry by /nats-io/nats-server
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.
| 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-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.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2020-26892, GHSA-2c64-vj8g-vwrq, GHSA-4w5x-x539-ppf5, GO-2022-0380, UBUNTU-CVE-2020-26892.