CVE-2020-26160
jwt-go: access restriction bypass vulnerability
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
jwt-go versiones anteriores a 4.0.0-preview1, permite a atacantes omitir las restricciones de acceso previstas en situaciones con []string{} para m["aud"] (que está permitido por la especificación). Porque la aserción de tipo presenta un fallo, "" es el valor de aud. Este es un problema de seguridad si el token JWT es presentado para un servicio que carece de su propia comprobación de audiencia
A vulnerability was found in jwt-go where it is vulnerable to Access Restriction Bypass if m["aud"] happens to be []string{}, as allowed by the spec, the type assertion fails and the value of aud is "". This can cause audience verification to succeed even if the audiences being passed are incorrect if required is set to false.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2020-09-30 CVE Reserved
- 2020-09-30 CVE Published
- 2023-06-16 EPSS Updated
- 2024-08-04 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-284: Improper Access Control
- CWE-287: Improper Authentication
- CWE-755: Improper Handling of Exceptional Conditions
CAPEC
References (4)
URL | Tag | Source |
---|---|---|
https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515 | Third Party Advisory |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/dgrijalva/jwt-go/pull/426 | 2021-07-21 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2020-26160 | 2021-12-14 | |
https://bugzilla.redhat.com/show_bug.cgi?id=1883371 | 2021-12-14 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Jwt-go Project Search vendor "Jwt-go Project" | Jwt-go Search vendor "Jwt-go Project" for product "Jwt-go" | <= 3.2.0 Search vendor "Jwt-go Project" for product "Jwt-go" and version " <= 3.2.0" | - |
Affected
|