CVE-2020-26160
jwt-go before 4.0.0-preview1 allows attackers to bypass intended access restrictions in situations with []string{} for m["aud"] (which is allowed by the specification). Because the type assertion fails, "" is the value of aud. This is a security problem if the JWT token is presented to a service that lacks its own audience check.
What to do
Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.
Go, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-coreos-discovery-etcd-io | Fix pending | UBUNTU-CVE-2020-26160 | |
| Ubuntu 26.04 | golang-github-coreos-discovery-etcd-io | Under investigation | UBUNTU-CVE-2020-26160 | |
| Ubuntu 25.10 | golang-github-coreos-discovery-etcd-io | Will not fix as of 2020-10-02, the proposed patches have not been accepted into the upstream tree. juju-core doesn't use jwt-go in a way that exposes the vulnerability… | UBUNTU-CVE-2020-26160 | |
| Ubuntu 24.04 | golang-github-coreos-discovery-etcd-io | Under investigation | UBUNTU-CVE-2020-26160 | |
| Ubuntu 22.04 | golang-github-coreos-discovery-etcd-io | Under investigation | UBUNTU-CVE-2020-26160 | |
| Ubuntu 22.04 | golang-github-dgrijalva-jwt-go | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | golang-github-coreos-discovery-etcd-io | Will not fix as of 2020-10-02, the proposed patches have not been accepted into the upstream tree. juju-core doesn't use jwt-go in a way that exposes the vulnerability… | UBUNTU-CVE-2020-26160 | |
| Ubuntu 20.04 | golang-github-dgrijalva-jwt-go | Will not fix as of 2020-10-02, the proposed patches have not been accepted into the upstream tree. juju-core doesn't use jwt-go in a way that exposes the vulnerability… | UBUNTU-CVE-2020-26160 | |
| Ubuntu 18.04 | golang-github-dgrijalva-jwt-go | Will not fix as of 2020-10-02, the proposed patches have not been accepted into the upstream tree. juju-core doesn't use jwt-go in a way that exposes the vulnerability… | UBUNTU-CVE-2020-26160 | |
| Ubuntu 16.04 | golang-github-dgrijalva-jwt-go | Will not fix as of 2020-10-02, the proposed patches have not been accepted into the upstream tree. juju-core doesn't use jwt-go in a way that exposes the vulnerability… | UBUNTU-CVE-2020-26160 | |
| Ubuntu 16.04 | juju-core | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | juju-core | Will not fix as of 2020-10-02, the proposed patches have not been accepted into the upstream tree. juju-core doesn't use jwt-go in a way that exposes the vulnerability… | ||
| Debian 12 | golang-github-dgrijalva-jwt-go | Fixed | 3.2.0-3 | DEBIAN-CVE-2020-26160 |
| Alpine Linux 3.24 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine Linux 3.23 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine Linux 3.22 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine Linux 3.21 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine Linux 3.20 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine Linux 3.19 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine Linux 3.18 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine Linux 3.17 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine Linux 3.16 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine Linux 3.15 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine Linux 3.14 | gitea | Fixed | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Go library | github.com/dgrijalva/jwt-go | Fix pending | GO-2020-0017 | |
| Go library | github.com/dgrijalva/jwt-go/v4 | Fixed | 4.0.0-preview1 | GO-2020-0017 |
References
- https://github.com/dgrijalva/jwt-go/pull/426
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.