# CVE-2021-3127

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-03-16 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-3127, DEBIAN-CVE-2021-3127, CGA-2pjv-449p-rcwf, CGA-59fw-v64c-mfcq, CGA-rp25-fc89-c3v5, CGA-xxv9-c886-gg48, GHSA-62mh-w5cv-p88c, BIT-nats-2021-3127, GHSA-9r5x-fjv3-q6h4, GHSA-j756-f273-xhp4, GO-2022-0386
- Record: https://cvemate.com/vulnerability/CVE-2021-3127 · JSON: https://cvemate.com/vulnerability/CVE-2021-3127/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.448%, percentile 74.236%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- chainguard nats-server (Chainguard): All versions (No fix recorded)
- chainguard nats-server-compat (Chainguard): All versions (No fix recorded)
- wolfi nats-server (Wolfi): All versions (No fix recorded)
- wolfi nats-server-compat (Wolfi): All versions (No fix recorded)
- debian golang-github-nats-io-jwt (Debian): \< 2.2.0-1
- ubuntu golang-github-nats-io-jwt (Ubuntu): All versions (No fix recorded)
- github.com/nats-io jwt (Go): ≤ 1.2.2 \| \< 1.2.3-0.20210314221642-a826c77dc9d2
- github.com/nats-io/jwt v2 (Go): \< 2.0.1
- github.com/nats-io/nats-server v2 (Go): \< 2.2.0
- linuxfoundation nats-server: ≥ 2.0.0, \< 2.2.0
- nats jwt\_library: \< 2.0.1

## References

- <https://advisories.nats.io/CVE/CVE-2021-3127.txt>
- <https://ubuntu.com/security/CVE-2021-3127>
- <https://www.openwall.com/lists/oss-security/2021/03/16/1>
- <https://www.openwall.com/lists/oss-security/2021/03/16/1/2>
- <https://www.cve.org/CVERecord?id=CVE-2021-3127>
- <https://github.com/nats-io/jwt/security/advisories/GHSA-62mh-w5cv-p88c>
- <https://github.com/nats-io/jwt/pull/149>
- <https://security-tracker.debian.org/tracker/CVE-2021-3127>
- <https://github.com/nats-io/nats-server/security/advisories/GHSA-j756-f273-xhp4>
- <https://github.com/nats-io/jwt/commit/6c72fdd73e82fa9ebb151d84773baf4e9164c4ab>
- <https://github.com/nats-io/jwt>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3127>
- <https://github.com/nats-io/jwt/pull/149/commits/a826c77dc9d2671c961b75ceefdb439c41029866>
- <https://github.com/nats-io/nats-server/commit/423b79440c80c863de9f4e20548504e6c5d5e403>
- <https://github.com/nats-io/nats-server>

---

Data as of 2026-12-05T11:22:53.281Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
