CVE-2015-10004: Github.com/robbert229/jwt Robbert229/jwt's Token Validation Methods Vulnerable Vulnerability

HIGH
Advisory Identifier: GHSA-5vw4-v588-pgv8
CVSS 7.5
CWE-668
Published
Advisory Summary

CVE-2015-10004 is a HIGH (CVSS 7.5) robbert229/jwt's token validation methods vulnerable vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Github.com/robbert229/jwt libraries in the Go ecosystem. The issue involves robbert229/jwt's token validation methods vulnerable to a timing side-channel during hmac comparison. Remediation is available by upgrading affected packages to version 0.0.0-20170426191122-ca1404ee6e83.

CVE-2015-10004 at a Glance

CVE Identifier CVE-2015-10004
GHSA Identifier GHSA-5vw4-v588-pgv8
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product Github.com/robbert229/jwt
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2015-10004

To remediate this vulnerability, upgrade all affected Github.com/robbert229/jwt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/robbert229/jwt fixed: 0.0.0-20170426191122-ca1404ee6e83
Upgrade github.com/robbert229/jwt to 0.0.0-20170426191122-ca1404ee6e83
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/robbert229/jwt

How to Check if You Are Affected

To determine whether your application is affected by CVE-2015-10004, inspect your project dependencies for Github.com/robbert229/jwt:

inspect dependencies for github.com/robbert229/jwt

Analyze the terminal output to locate any version of Github.com/robbert229/jwt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20170426191122-ca1404ee6e83), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Github.com/robbert229/jwt, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2015-10004 Affected Github.com/robbert229/jwt Versions

1 component(s)
Fixed Versions:
0.0.0-20170426191122-ca1404ee6e83
Product / Package Ecosystem Affected Versions Fixed Version
github.com/robbert229/jwt
Go
< 0.0.0-20170426191122-ca1404ee6e83
0.0.0-20170426191122-ca1404ee6e83

References

Frequently Asked Questions

What is CVE-2015-10004?
CVE-2015-10004 is a security vulnerability in Github.com/robbert229/jwt involving robbert229/jwt's token validation methods vulnerable to a timing side-channel during HMAC comparison under CWE-668: Exposure of Resource to Wrong Sphere.
Which Github.com/robbert229/jwt versions are affected?
Affected versions include releases prior to 0.0.0-20170426191122-ca1404ee6e83 across affected packages: github.com/robbert229/jwt.
What version fixes CVE-2015-10004?
Upgrading to 0.0.0-20170426191122-ca1404ee6e83 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/robbert229/jwt affected?
Yes, github.com/robbert229/jwt is affected in releases prior to 0.0.0-20170426191122-ca1404ee6e83. Upgrade your dependency to 0.0.0-20170426191122-ca1404ee6e83 or later.
What is the CVSS score of CVE-2015-10004?
CVE-2015-10004 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2015-10004?
CVE-2015-10004 is classified under CWE-668: Exposure of Resource to Wrong Sphere (The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.).
How can I check Go dependencies for CVE-2015-10004?
Run the dependency tree command: 'inspect dependencies for github.com/robbert229/jwt'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5vw4-v588-pgv8",
  "modified" : "2024-05-20T19:41:55Z",
  "published" : "2022-12-28T00:30:23Z",
  "aliases" : [ "CVE-2015-10004" ],
  "summary" : "robbert229/jwt's token validation methods vulnerable to a timing side-channel during HMAC comparison",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/robbert229/jwt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20170426191122-ca1404ee6e83"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-10004"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/robbert229/jwt/issues/12"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/robbert229/jwt/commit/ca1404ee6e83fcbafb66b09ed0d543850a15b654"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/robbert229/jwt"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2020-0023"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-668" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-30T19:33:01Z",
    "nvd_published_at" : "2022-12-27T22:15:00Z"
  }
}