CVE-2022-2583: Github.com/ntbosscher/gobase Gobase Subject To Incorrect Routing Vulnerability

LOW
Advisory Identifier: GHSA-h2x7-2ff6-v32p
CVSS 3.7
CWE-362
Published
Advisory Summary

CVE-2022-2583 is a LOW (CVSS 3.7) gobase subject to incorrect routing vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Github.com/ntbosscher/gobase libraries in the Go ecosystem. The issue involves gobase subject to incorrect routing of some http requests when using httpauth due to a race condition. Remediation is available by upgrading affected packages to version 0.7.2.

CVE-2022-2583 at a Glance

CVE Identifier CVE-2022-2583
GHSA Identifier GHSA-h2x7-2ff6-v32p
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Github.com/ntbosscher/gobase
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.7

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

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

How to Fix CVE-2022-2583

To remediate this vulnerability, upgrade all affected Github.com/ntbosscher/gobase 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/ntbosscher/gobase fixed: 0.7.2
Upgrade github.com/ntbosscher/gobase to 0.7.2
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/ntbosscher/gobase

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-2583, inspect your project dependencies for Github.com/ntbosscher/gobase:

inspect dependencies for github.com/ntbosscher/gobase

Analyze the terminal output to locate any version of Github.com/ntbosscher/gobase in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.2), 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-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Github.com/ntbosscher/gobase, 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

### Impact Incorrect routing of some HTTP requests when using httpauth due to a race condition ### Patches Upgrade to version 0.7.2 for fix ### Workarounds None ### For more information If you have any questions or comments about this advisory: * Email us at [nbosscher@blue-giraffe.ca](mailto:nbosscher@blue-giraffe.ca)

CVE-2022-2583 Affected Github.com/ntbosscher/gobase Versions

1 component(s)
Fixed Versions:
0.7.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/ntbosscher/gobase
Go
< 0.7.2
0.7.2

References

Frequently Asked Questions

What is CVE-2022-2583?
CVE-2022-2583 is a security vulnerability in Github.com/ntbosscher/gobase involving gobase subject to Incorrect routing of some HTTP requests when using httpauth due to a race condition under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Github.com/ntbosscher/gobase versions are affected?
Affected versions include releases prior to 0.7.2 across affected packages: github.com/ntbosscher/gobase.
What version fixes CVE-2022-2583?
Upgrading to 0.7.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/ntbosscher/gobase affected?
Yes, github.com/ntbosscher/gobase is affected in releases prior to 0.7.2. Upgrade your dependency to 0.7.2 or later.
What is the CVSS score of CVE-2022-2583?
CVE-2022-2583 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2022-2583?
CVE-2022-2583 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check Go dependencies for CVE-2022-2583?
Run the dependency tree command: 'inspect dependencies for github.com/ntbosscher/gobase'. 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-h2x7-2ff6-v32p",
  "modified" : "2026-02-02T21:00:51Z",
  "published" : "2022-02-11T23:39:57Z",
  "aliases" : [ "CVE-2022-2583" ],
  "summary" : "gobase subject to Incorrect routing of some HTTP requests when using httpauth due to a race condition",
  "details" : "### Impact\nIncorrect routing of some HTTP requests when using httpauth due to a race condition\n\n### Patches\nUpgrade to version 0.7.2 for fix\n\n### Workarounds\nNone\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [nbosscher@blue-giraffe.ca](mailto:nbosscher@blue-giraffe.ca)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/ntbosscher/gobase"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ntbosscher/gobase/security/advisories/GHSA-h2x7-2ff6-v32p"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-2583"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ntbosscher/gobase/commit/a8d40bce9c429d324122d18c446924dab809e812"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ntbosscher/gobase"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2022-0400"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-21T22:08:26Z",
    "nvd_published_at" : null
  }
}