CVE-2022-23452: Barbican Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-6p2h-rjj7-2j63
CVSS 4.9
CWE-863
Published
Advisory Summary

CVE-2022-23452 is a MODERATE (CVSS 4.9) denial of service vulnerability (CWE-863: Incorrect Authorization) affecting Barbican libraries in the PyPI ecosystem. The issue involves openstack-barbican denial of service vulnerability. Remediation is available by upgrading affected packages to version 14.0.0.

CVE-2022-23452 at a Glance

CVE Identifier CVE-2022-23452
GHSA Identifier GHSA-6p2h-rjj7-2j63
Severity MODERATE
CVSS v3.1 Base Score 4.9
CWE Classification CWE-863: Incorrect Authorization
Affected Product Barbican
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.9

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

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

How to Fix CVE-2022-23452

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-23452, 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, where anyone with an admin role could add secrets to a different project container. This flaw allows an attacker on the network to consume protected resources and cause a denial of service.

CVE-2022-23452 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-23452?
CVE-2022-23452 is a security vulnerability in Barbican involving openstack-barbican Denial of Service vulnerability 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-23452?
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-23452?
CVE-2022-23452 has a CVSS v3.1 base score of 4.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-23452?
CVE-2022-23452 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-23452?
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-6p2h-rjj7-2j63",
  "modified" : "2024-05-14T21:21:48Z",
  "published" : "2022-09-02T00:01:02Z",
  "aliases" : [ "CVE-2022-23452" ],
  "summary" : "openstack-barbican Denial of Service vulnerability",
  "details" : "An authorization flaw was found in openstack-barbican, where anyone with an admin role could add secrets to a different project container. This flaw allows an attacker on the network to consume protected resources and cause a denial of service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/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-23452"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/barbican/commit/6c841b23afa8ed6fa4cd01ba1a6bebfb60f06ae5"
  }, {
    "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-23452"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2022908"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2025090"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/barbican/+/814200"
  }, {
    "type" : "WEB",
    "url" : "https://storyboard.openstack.org/#!/story/2009297"
  }, {
    "type" : "WEB",
    "url" : "https://storyboard.openstack.org/#%21/story/2009297"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T21:21:48Z",
    "nvd_published_at" : "2022-09-01T21:15:00Z"
  }
}