CVE-2022-23451: Barbican Barbican Authorization Flaw Before V14.0.0 Vulnerability
HIGHCVE-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
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).
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.
pip install barbican>=14.0.0
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
CVE-2022-23451 Affected Barbican Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
barbican
|
PyPI |
< 14.0.0
|
14.0.0
|
References
Frequently Asked Questions
What is CVE-2022-23451?
Which Barbican versions are affected?
What version fixes CVE-2022-23451?
Is barbican affected?
What is the CVSS score of CVE-2022-23451?
What CWE is associated with CVE-2022-23451?
How can I check PyPI dependencies for CVE-2022-23451?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}