Vulnerabilities in pkg:pypi/blackduck

PACKAGE
Advisory Identifier: GHSA-f248-v4qh-x2r6
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/blackduck

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/blackduck. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-f248-v4qh-x2r6 CVE-2020-27589 HIGH Improper Certificate Validation in blackduck

CVE-2020-27589 at a Glance

CVE Identifier CVE-2020-27589
GHSA Identifier GHSA-f248-v4qh-x2r6
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Blackduck
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

blackduck fixed: 0.0.53
pip install blackduck>=0.0.53
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 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

Synopsys hub-rest-api-python (aka blackduck on PyPI) version 0.0.25 - 0.0.52 does not validate SSL certificates in certain cases.

CVE-2020-27589 Affected Blackduck Versions

1 component(s)
Fixed Versions:
0.0.53
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?
CVE-2020-27589 is a security vulnerability in Blackduck involving Improper Certificate Validation in blackduck under CWE-295: Improper Certificate Validation.
Which Blackduck versions are affected?
Affected versions include releases prior to 0.0.53 across affected packages: blackduck.
What version fixes CVE-2020-27589?
Upgrading to 0.0.53 (or the latest patched release for your respective branch) resolves the vulnerability.
Is blackduck affected?
Yes, blackduck is affected in releases prior to 0.0.53. Upgrade your dependency to 0.0.53 or later.
What is the CVSS score of CVE-2020-27589?
CVE-2020-27589 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2020-27589?
CVE-2020-27589 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check PyPI dependencies for CVE-2020-27589?
Run the dependency tree command: 'pip show blackduck'. 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-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"
  }
}