CVE-2022-2583: Github.com/ntbosscher/gobase Gobase Subject To Incorrect Routing Vulnerability
LOWCVE-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
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).
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.
Upgrade github.com/ntbosscher/gobase to 0.7.2
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
CVE-2022-2583 Affected Github.com/ntbosscher/gobase Versions
1 component(s)| 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?
Which Github.com/ntbosscher/gobase versions are affected?
What version fixes CVE-2022-2583?
Is github.com/ntbosscher/gobase affected?
What is the CVSS score of CVE-2022-2583?
What CWE is associated with CVE-2022-2583?
How can I check Go dependencies for CVE-2022-2583?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}