CVE-2022-39219: Github.com/brokercap/Bifrost Authentication Bypass Vulnerability
HIGHCVE-2022-39219 is a HIGH (CVSS 8.5) authentication bypass vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Github.com/brokercap/Bifrost libraries in the Go ecosystem. The issue involves brokercap bifrost subject to authentication bypass when using http basic authentication. Remediation is available by upgrading affected packages to version 1.8.7-release.
CVE-2022-39219 at a Glance
Security Impact
CVSS: 8.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L).
How to Fix CVE-2022-39219
To remediate this vulnerability, upgrade all affected Github.com/brokercap/Bifrost 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/brokercap/Bifrost to 1.8.7-release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/brokercap/Bifrost
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-39219, inspect your project dependencies for Github.com/brokercap/Bifrost:
inspect dependencies for github.com/brokercap/Bifrost
Analyze the terminal output to locate any version of Github.com/brokercap/Bifrost in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.7-release), 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-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Github.com/brokercap/Bifrost, 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-39219 Affected Github.com/brokercap/Bifrost Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/brokercap/Bifrost
|
Go |
< 1.8.7-release
|
1.8.7-release
|
References
Frequently Asked Questions
What is CVE-2022-39219?
Which Github.com/brokercap/Bifrost versions are affected?
What version fixes CVE-2022-39219?
Is github.com/brokercap/Bifrost affected?
What is the CVSS score of CVE-2022-39219?
What CWE is associated with CVE-2022-39219?
How can I check Go dependencies for CVE-2022-39219?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p6fh-xc6r-g5hw",
"modified" : "2022-09-27T15:45:09Z",
"published" : "2022-09-27T15:45:09Z",
"aliases" : [ "CVE-2022-39219" ],
"summary" : "Brokercap Bifrost subject to authentication bypass when using HTTP basic authentication",
"details" : "Bifrost is a middleware package which can synchronize MySQL/MariaDB binlog data to other types of databases. Versions 1.8.6-release and prior are vulnerable to authentication bypass when using HTTP basic authentication. This may allow group members who only have read permissions to write requests when they are normally forbidden from doing so. Version 1.8.7-release contains a patch. There are currently no known workarounds.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/brokercap/Bifrost"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.7-release"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.8.6-release"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/brokercap/Bifrost/security/advisories/GHSA-p6fh-xc6r-g5hw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39219"
}, {
"type" : "WEB",
"url" : "https://github.com/brokercap/Bifrost/issues/200"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/brokercap/Bifrost"
}, {
"type" : "WEB",
"url" : "https://github.com/brokercap/Bifrost/releases/tag/v1.8.7-release"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287", "CWE-732" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-09-27T15:45:09Z",
"nvd_published_at" : "2022-09-26T14:15:00Z"
}
}