CVE-2022-30034: Flower Authentication Bypass Vulnerability
HIGHCVE-2022-30034 is a HIGH (CVSS 8.6) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Flower libraries in the PyPI ecosystem. The issue involves flower oauth authentication bypass. Remediation is available by upgrading affected packages to version 1.2.0.
CVE-2022-30034 at a Glance
Security Impact
CVSS: 8.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H).
How to Fix CVE-2022-30034
To remediate this vulnerability, upgrade all affected Flower 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 flower>=1.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show flower
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2022-30034, inspect your installed packages using pip:
pip show flower
Analyze the terminal output to locate any version of Flower in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.0), your application is affected.
Note: The pip show flower command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Flower, 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-30034 Affected Flower Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
flower
|
PyPI |
< 1.2.0
|
1.2.0
|
References
Frequently Asked Questions
What is CVE-2022-30034?
Which Flower versions are affected?
What version fixes CVE-2022-30034?
Is flower affected?
What is the CVSS score of CVE-2022-30034?
What CWE is associated with CVE-2022-30034?
How can I check PyPI dependencies for CVE-2022-30034?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q4qm-xhf9-4p8f",
"modified" : "2024-09-20T20:09:21Z",
"published" : "2022-06-03T00:01:07Z",
"aliases" : [ "CVE-2022-30034" ],
"summary" : "Flower OAuth authentication bypass",
"details" : "All versions of Flower, a web UI for the Celery Python RPC framework, as of 05-02-2022 are vulnerable to an OAuth authentication bypass. An attacker could then access the Flower API to discover and invoke arbitrary Celery RPC calls or deny service by shutting down Celery task nodes. A fix was released in version 1.2.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "flower"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-30034"
}, {
"type" : "WEB",
"url" : "https://github.com/mher/flower/issues/1217"
}, {
"type" : "WEB",
"url" : "https://github.com/mher/flower/pull/1216"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mher/flower"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/flower/PYSEC-2022-42973.yaml"
}, {
"type" : "WEB",
"url" : "https://tprynn.github.io/2022/05/26/flower-vulns.html"
}, {
"type" : "WEB",
"url" : "http://githubcommherflower.com"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-03T22:29:21Z",
"nvd_published_at" : "2022-06-02T14:15:00Z"
}
}