CVE-2022-23451: Barbican Barbican Authorization Flaw Before V14.0.0 Vulnerability

HIGH
Advisory Identifier: GHSA-p2jg-q8hw-p7gc
CVSS 8.1
CWE-863
Published
Advisory Summary

CVE-2022-23451 is a HIGH (CVSS 8.1) barbican authorization flaw before v14.0.0 vulnerability (CWE-863: Incorrect Authorization) affecting Barbican libraries in the PyPI ecosystem. The issue involves barbican authorization flaw before v14.0.0. Remediation is available by upgrading affected packages to version 14.0.0.

CVE-2022-23451 at a Glance

CVE Identifier CVE-2022-23451
GHSA Identifier GHSA-p2jg-q8hw-p7gc
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-863: Incorrect Authorization
Affected Product Barbican
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.1

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:U/C:N/I:H/A:H).

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

How to Fix CVE-2022-23451

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

barbican fixed: 14.0.0
pip install barbican>=14.0.0
Verify Direct and Transitive Dependencies

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

pip show barbican

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2022-23451, inspect your installed packages using pip:

pip show barbican

Analyze the terminal output to locate any version of Barbican in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.0.0), your application is affected.

Note: The pip show barbican command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Barbican, 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

An authorization flaw was found in openstack-barbican. The default policy rules for the secret metadata API allowed any authenticated user to add, modify, or delete metadata from any secret regardless of ownership. This flaw allows an attacker on the network to modify or delete protected data, causing a denial of service by consuming protected resources.

CVE-2022-23451 Affected Barbican Versions

1 component(s)
Fixed Versions:
14.0.0
Product / Package Ecosystem Affected Versions Fixed Version
barbican
PyPI
< 14.0.0
14.0.0

References

Frequently Asked Questions

What is CVE-2022-23451?
CVE-2022-23451 is a security vulnerability in Barbican involving Barbican authorization flaw before v14.0.0 under CWE-863: Incorrect Authorization.
Which Barbican versions are affected?
Affected versions include releases prior to 14.0.0 across affected packages: barbican.
What version fixes CVE-2022-23451?
Upgrading to 14.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is barbican affected?
Yes, barbican is affected in releases prior to 14.0.0. Upgrade your dependency to 14.0.0 or later.
What is the CVSS score of CVE-2022-23451?
CVE-2022-23451 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2022-23451?
CVE-2022-23451 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check PyPI dependencies for CVE-2022-23451?
Run the dependency tree command: 'pip show barbican'. 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-p2jg-q8hw-p7gc",
  "modified" : "2022-09-15T03:22:08Z",
  "published" : "2022-09-07T00:01:53Z",
  "aliases" : [ "CVE-2022-23451" ],
  "summary" : "Barbican authorization flaw before v14.0.0",
  "details" : "An authorization flaw was found in openstack-barbican. The default policy rules for the secret metadata API allowed any authenticated user to add, modify, or delete metadata from any secret regardless of ownership. This flaw allows an attacker on the network to modify or delete protected data, causing a denial of service by consuming protected resources.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "barbican"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23451"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/barbican/commit/7d270bacbe29a90a10f1855abc3b50dac0f08022"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2022:5114"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2022:8874"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2022-23451"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2022878"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2025089"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/barbican"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/barbican/+/811236"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-15T03:22:08Z",
    "nvd_published_at" : "2022-09-06T18:15:00Z"
  }
}