Skip to content

robbert229/jwt's token validation methods vulnerable to a timing side-channel during HMAC comparison

High severity GitHub Reviewed Published Dec 28, 2022 to the GitHub Advisory Database • Updated Feb 3, 2023

Package

gomod github.com/robbert229/jwt (Go)

Affected versions

< 0.0.0-20170426191122-ca1404ee6e83

Patched versions

0.0.0-20170426191122-ca1404ee6e83

Description

Token validation methods are susceptible to a timing side-channel during HMAC comparison. With a large enough number of requests over a low latency connection, an attacker may use this to determine the expected HMAC.

References

Published by the National Vulnerability Database Dec 27, 2022
Published to the GitHub Advisory Database Dec 28, 2022
Reviewed Dec 30, 2022
Last updated Feb 3, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Weaknesses

CVE ID

CVE-2015-10004

GHSA ID

GHSA-5vw4-v588-pgv8

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.