Vulnerabilities in pkg:pypi/blazar-dashboard
PACKAGECVE-2020-26943 is a MODERATE (CVSS 9.9) arbitrary code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Blazar dashboard libraries in the PyPI ecosystem. The issue involves arbitrary code execution in blazar-dashboard. Remediation is available by upgrading affected packages to version 1.3.1, 2.0.1, 3.0.1.
pkg:pypi/blazar-dashboard
Vulnerability advisories affecting package pkg:pypi/blazar-dashboard. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-939m-4xpw-v34v | CVE-2020-26943 | MODERATE | Arbitrary Code Execution in blazar-dashboard |
CVE-2020-26943 at a Glance
Security Impact
CVSS: 9.9
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:H/I:H/A:H).
How to Fix CVE-2020-26943
To remediate this vulnerability, upgrade all affected Blazar dashboard 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 blazar-dashboard>=1.3.1
pip install blazar-dashboard>=2.0.1
pip install blazar-dashboard>=3.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show blazar-dashboard
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2020-26943, inspect your installed packages using pip:
pip show blazar-dashboard
Analyze the terminal output to locate any version of Blazar dashboard in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.1), your application is affected.
Note: The pip show blazar-dashboard command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Blazar dashboard, 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-2020-26943 Affected Blazar dashboard Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
blazar-dashboard
|
PyPI |
< 1.3.1
|
1.3.1
|
|
blazar-dashboard
|
PyPI |
≥ 2.0.0
< 2.0.1
All 1 versions
2.0.0
|
2.0.1
|
|
blazar-dashboard
|
PyPI |
≥ 3.0.0
< 3.0.1
All 1 versions
3.0.0
|
3.0.1
|
References
Frequently Asked Questions
What is CVE-2020-26943?
Which Blazar dashboard versions are affected?
What version fixes CVE-2020-26943?
Is blazar-dashboard affected?
What is the CVSS score of CVE-2020-26943?
What CWE is associated with CVE-2020-26943?
How can I check PyPI dependencies for CVE-2020-26943?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-939m-4xpw-v34v",
"modified" : "2024-09-06T16:25:48Z",
"published" : "2020-10-27T17:55:04Z",
"aliases" : [ "CVE-2020-26943" ],
"summary" : "Arbitrary Code Execution in blazar-dashboard",
"details" : "An issue was discovered in OpenStack blazar-dashboard before 1.3.1, 2.0.0, and 3.0.0. A user allowed to access the Blazar dashboard in Horizon may trigger code execution on the Horizon host as the user the Horizon service runs under (because the Python eval function is used). This may result in Horizon host unauthorized access and further compromise of the Horizon service. All setups using the Horizon dashboard with the blazar-dashboard plugin are affected.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "blazar-dashboard"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "blazar-dashboard"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.1"
} ]
} ],
"versions" : [ "2.0.0" ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "blazar-dashboard"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.0.1"
} ]
} ],
"versions" : [ "3.0.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26943"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/blazar-dashboard/PYSEC-2020-225.yaml"
}, {
"type" : "WEB",
"url" : "https://launchpad.net/bugs/1895688"
}, {
"type" : "WEB",
"url" : "https://review.opendev.org/755810"
}, {
"type" : "WEB",
"url" : "https://review.opendev.org/755812"
}, {
"type" : "WEB",
"url" : "https://review.opendev.org/755813"
}, {
"type" : "WEB",
"url" : "https://review.opendev.org/755814"
}, {
"type" : "WEB",
"url" : "https://review.opendev.org/756064"
}, {
"type" : "WEB",
"url" : "https://security.openstack.org/ossa/OSSA-2020-007.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2020/10/16/5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-10-26T20:14:25Z",
"nvd_published_at" : null
}
}