CVE-2020-27589: Blackduck Improper Certificate Validation Vulnerability
HIGHCVE-2020-27589 is a HIGH (CVSS 7.5) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Blackduck libraries in the PyPI ecosystem. The issue involves improper certificate validation in blackduck. Remediation is available by upgrading affected packages to version 0.0.53.
CVE-2020-27589 at a Glance
Security Impact
CVSS: 7.5
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:N/I:H/A:N).
How to Fix CVE-2020-27589
To remediate this vulnerability, upgrade all affected Blackduck 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 blackduck>=0.0.53
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show blackduck
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2020-27589, inspect your installed packages using pip:
pip show blackduck
Analyze the terminal output to locate any version of Blackduck in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.53), your application is affected.
Note: The pip show blackduck command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Blackduck, 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-27589 Affected Blackduck Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
blackduck
|
PyPI |
≥ 0.0.25
< 0.0.53
|
0.0.53
|
References
Frequently Asked Questions
What is CVE-2020-27589?
Which Blackduck versions are affected?
What version fixes CVE-2020-27589?
Is blackduck affected?
What is the CVSS score of CVE-2020-27589?
What CWE is associated with CVE-2020-27589?
How can I check PyPI dependencies for CVE-2020-27589?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f248-v4qh-x2r6",
"modified" : "2024-09-13T17:43:29Z",
"published" : "2021-04-20T16:29:41Z",
"aliases" : [ "CVE-2020-27589" ],
"summary" : "Improper Certificate Validation in blackduck",
"details" : "Synopsys hub-rest-api-python (aka blackduck on PyPI) version 0.0.25 - 0.0.52 does not validate SSL certificates in certain cases.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "blackduck"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.25"
}, {
"fixed" : "0.0.53"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-27589"
}, {
"type" : "WEB",
"url" : "https://github.com/blackducksoftware/hub-rest-api-python/pull/113"
}, {
"type" : "WEB",
"url" : "https://github.com/blackducksoftware/hub-rest-api-python/commit/0a25777117515b8b4ff287a98f57837a8c6bdbdb"
}, {
"type" : "WEB",
"url" : "https://community.synopsys.com/s/question/0D52H00005JCZAXSA5/announcement-black-duck-defect-identified"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-f248-v4qh-x2r6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/blackducksoftware/hub-rest-api-python"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/blackduck/PYSEC-2020-26.yaml"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/blackduck"
}, {
"type" : "WEB",
"url" : "https://www.optiv.com/explore-optiv-insights/source-zero/certificate-validation-disabled-black-duck-api-wrapper"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-19T23:38:37Z",
"nvd_published_at" : "2020-11-06T14:15:00Z"
}
}