Vulnerability · Published Sep 30, 2020 · Assigned by mitre
CVE-2020-26160
High 7.5
In plain English
A high-severity security flaw in the gitea package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 82% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | gitea | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine:v3.21 | gitea | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine:v3.22 | gitea | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine:v3.23 | gitea | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Alpine:v3.24 | gitea | 1.14.6-r0 | ALPINE-CVE-2020-26160 |
| Debian:12 | golang-github-dgrijalva-jwt-go | 3.2.0-3 | DEBIAN-CVE-2020-26160 |
| Go | github.com/dgrijalva/jwt-go | no fix listed | GO-2020-0017 |
| Go | github.com/dgrijalva/jwt-go | no fix listed | GHSA-w73w-5m7g-f7qc |
| Go | github.com/dgrijalva/jwt-go/v4 | 4.0.0-preview1 | GO-2020-0017 |
| Go | github.com/dgrijalva/jwt-go/v4 | 4.0.0-preview1 | GHSA-w73w-5m7g-f7qc |
| Ubuntu:22.04:LTS | golang-github-coreos-discovery-etcd-io | no fix listed | UBUNTU-CVE-2020-26160 |
| Ubuntu:24.04:LTS | golang-github-coreos-discovery-etcd-io | no fix listed | UBUNTU-CVE-2020-26160 |
| Ubuntu:25.10 | golang-github-coreos-discovery-etcd-io | no fix listed | UBUNTU-CVE-2020-26160 |
| Ubuntu:26.04:LTS | golang-github-coreos-discovery-etcd-io | no fix listed | UBUNTU-CVE-2020-26160 |
| Ubuntu:26.10 | golang-github-coreos-discovery-etcd-io | no fix listed | UBUNTU-CVE-2020-26160 |
Affected products (as reported)
References
- https://github.com/dgrijalva/jwt-go/pull/426 x_refsource_MISC
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515 x_refsource_MISC