CVE-2022-39219: Github.com/brokercap/Bifrost Authentication Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-p6fh-xc6r-g5hw
CVSS 8.5
CWE-732 CWE-287
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-39219
GHSA Identifier GHSA-p6fh-xc6r-g5hw
Severity HIGH
CVSS v3.1 Base Score 8.5
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Github.com/brokercap/Bifrost
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity High (I:H)
Availability Low (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.

github.com/brokercap/Bifrost fixed: 1.8.7-release
Upgrade github.com/brokercap/Bifrost to 1.8.7-release
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/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

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.

CVE-2022-39219 Affected Github.com/brokercap/Bifrost Versions

1 component(s)
Fixed Versions:
1.8.7-release
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?
CVE-2022-39219 is a security vulnerability in Github.com/brokercap/Bifrost involving Brokercap Bifrost subject to authentication bypass when using HTTP basic authentication under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Github.com/brokercap/Bifrost versions are affected?
Affected versions include releases prior to 1.8.7-release across affected packages: github.com/brokercap/Bifrost.
What version fixes CVE-2022-39219?
Upgrading to 1.8.7-release (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/brokercap/Bifrost affected?
Yes, github.com/brokercap/Bifrost is affected in releases prior to 1.8.7-release. Upgrade your dependency to 1.8.7-release or later.
What is the CVSS score of CVE-2022-39219?
CVE-2022-39219 has a CVSS v3.1 base score of 8.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L.
What CWE is associated with CVE-2022-39219?
CVE-2022-39219 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Go dependencies for CVE-2022-39219?
Run the dependency tree command: 'inspect dependencies for github.com/brokercap/Bifrost'. 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-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"
  }
}