Skip to content
OpenAdvisories
High · 7.5 CVE-2021-3127 BIT-nats-2021-3127EUVD-2022-0850GHSA-62mh-w5cv-p88cGHSA-9r5x-fjv3-q6h4GHSA-j756-f273-xhp4GO-2022-0386

nats-io/jwt not enforcing checking of Import token permissions

Published Mar 16, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings are mishandled.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-github-nats-io-jwt 2.2.0-1 —
Debian 13 golang-github-nats-io-jwt 2.2.0-1 —
Debian 12 golang-github-nats-io-jwt 2.2.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS golang-github-nats-io-jwt No fix yet —
Ubuntu 20.04 LTS golang-github-nats-io-jwt No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/nats-io/jwt <= 1.2.2 — GHSA-62mh-w5cv-p88c
Go github.com/nats-io/jwt < 1.2.3-0.20210314221642-a826c77dc9d2 1.2.3-0.20210314221642-a826c77dc9d2 GO-2022-0386
Go github.com/nats-io/jwt/v2 < 2.0.1 2.0.1 GHSA-62mh-w5cv-p88c
Go github.com/nats-io/nats-server/v2 < 2.2.0 2.2.0 GHSA-j756-f273-xhp4

References