Vulnerabilities in pkg:pypi/ironic-inspector

PACKAGE
Advisory Identifier: GHSA-c7fc-cm7p-92r2
Advisory Summary

CVE-2019-10141 is a HIGH (CVSS 8.3) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Ironic inspector libraries in the PyPI ecosystem. The issue involves openstack ironic-inspector has sql injection vulnerability in node_cache. Remediation is available by upgrading affected packages to version 5.0.2, 6.0.3, 7.2.4, 8.0.3, 8.2.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/ironic-inspector

2 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-c7fc-cm7p-92r2 CVE-2019-10141 HIGH Openstack ironic-inspector has SQL injection vulnerability in node_cache
GHSA-x64g-wjmw-w328 CVE-2015-5306 CRITICAL Injection vulnerability that affects ironic-discoverd

CVE-2019-10141 at a Glance

CVE Identifier CVE-2019-10141
GHSA Identifier GHSA-c7fc-cm7p-92r2
Severity HIGH
CVSS v3.1 Base Score 8.3
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Ironic inspector
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-10141

To remediate this vulnerability, upgrade all affected Ironic inspector dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ironic-inspector fixed: 5.0.2
pip install ironic-inspector>=5.0.2
ironic-inspector fixed: 6.0.3
pip install ironic-inspector>=6.0.3
ironic-inspector fixed: 7.2.4
pip install ironic-inspector>=7.2.4
ironic-inspector fixed: 8.0.3
pip install ironic-inspector>=8.0.3
ironic-inspector fixed: 8.2.1
pip install ironic-inspector>=8.2.1
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 ironic-inspector

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2019-10141, inspect your installed packages using pip:

pip show ironic-inspector

Analyze the terminal output to locate any version of Ironic inspector in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.2), your application is affected.

Note: The pip show ironic-inspector command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Ironic inspector, 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

A vulnerability was found in openstack-ironic-inspector all versions excluding 5.0.2, 6.0.3, 7.2.4, 8.0.3 and 8.2.1. A SQL-injection vulnerability was found in openstack-ironic-inspector's node_cache.find_node(). This function makes a SQL query using unfiltered data from a server reporting inspection results (by a POST to the /v1/continue endpoint). Because the API is unauthenticated, the flaw could be exploited by an attacker with access to the network on which ironic-inspector is listening. Because of how ironic-inspector uses the query results, it is unlikely that data could be obtained. However, the attacker could pass malicious data and create a denial of service.

CVE-2019-10141 Affected Ironic inspector Versions

5 component(s)
Fixed Versions:
5.0.26.0.37.2.48.0.38.2.1
Product / Package Ecosystem Affected Versions Fixed Version
ironic-inspector
PyPI
< 5.0.2
5.0.2
ironic-inspector
PyPI
≥ 5.1.0
< 6.0.3
6.0.3
ironic-inspector
PyPI
≥ 6.1.0
< 7.2.4
7.2.4
ironic-inspector
PyPI
≥ 8.0.0
< 8.0.3
8.0.3
ironic-inspector
PyPI
≥ 8.1.0
< 8.2.1
8.2.1

References

NVD — CVE-2019-10141 NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-10141
Security Fix Commit FIX COMMIT
https://github.com/openstack/ironic-inspector/commit/17c796b49171b6133e988f78c92d7c9b7ed3fcf3
Security Fix Commit FIX COMMIT
https://github.com/openstack/ironic-inspector/commit/67ff87ebca1016d44bd9d284ec4c16a88a533cfc
Security Fix Commit FIX COMMIT
https://github.com/openstack/ironic-inspector/commit/97f9d34f8376ac7accd2597b3bdce67a9dac664f
Security Fix Commit FIX COMMIT
https://github.com/openstack/ironic-inspector/commit/9d107900b2e0b599397b84409580d46e0ed16291
access.redhat.com/errata/rhsa-2019:25... WEB
https://access.redhat.com/errata/RHSA-2019:2505
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10141
docs.openstack.org/releasenotes/ironic... WEB
https://docs.openstack.org/releasenotes/ironic-inspector/ocata.html#relnotes-5-0-2-7-origin-stable-ocata
docs.openstack.org/releasenotes/ironic... WEB
https://docs.openstack.org/releasenotes/ironic-inspector/pike.html#relnotes-6-0-3-4-stable-pike
docs.openstack.org/releasenotes/ironic... WEB
https://docs.openstack.org/releasenotes/ironic-inspector/queens.html#relnotes-7-2-4-stable-queens
docs.openstack.org/releasenotes/ironic... WEB
https://docs.openstack.org/releasenotes/ironic-inspector/rocky.html#relnotes-8-0-3-stable-rocky
docs.openstack.org/releasenotes/ironic... WEB
https://docs.openstack.org/releasenotes/ironic-inspector/stein.html#relnotes-8-2-1-stable-stein
Ironic inspector Source Repository REPOSITORY
https://github.com/openstack/ironic-inspector
Ironic inspector Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/ironic-inspector/PYSEC-2019-152.yaml
review.opendev.org/c/openstack/ironic-... WEB
https://review.opendev.org/c/openstack/ironic-inspector/+/660234
storyboard.openstack.org/ WEB
https://storyboard.openstack.org/#!/story/2005678

Frequently Asked Questions

What is CVE-2019-10141?
CVE-2019-10141 is a security vulnerability in Ironic inspector involving Openstack ironic-inspector has SQL injection vulnerability in node_cache under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Ironic inspector versions are affected?
Affected versions include releases prior to 5.0.2, 6.0.3, 7.2.4, 8.0.3, 8.2.1 across affected packages: ironic-inspector.
What version fixes CVE-2019-10141?
Upgrading to 5.0.2, 6.0.3, 7.2.4, 8.0.3, 8.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ironic-inspector affected?
Yes, ironic-inspector is affected in releases prior to 5.0.2, 6.0.3, 7.2.4, 8.0.3, 8.2.1. Upgrade your dependency to 5.0.2, 6.0.3, 7.2.4, 8.0.3, 8.2.1 or later.
What is the CVSS score of CVE-2019-10141?
CVE-2019-10141 has a CVSS v3.1 base score of 8.3 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H.
What CWE is associated with CVE-2019-10141?
CVE-2019-10141 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check PyPI dependencies for CVE-2019-10141?
Run the dependency tree command: 'pip show ironic-inspector'. 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-c7fc-cm7p-92r2",
  "modified" : "2024-09-27T15:56:03Z",
  "published" : "2022-05-24T16:51:42Z",
  "aliases" : [ "CVE-2019-10141" ],
  "summary" : "Openstack ironic-inspector has SQL injection vulnerability in node_cache",
  "details" : "A vulnerability was found in openstack-ironic-inspector all versions excluding 5.0.2, 6.0.3, 7.2.4, 8.0.3 and 8.2.1. A SQL-injection vulnerability was found in openstack-ironic-inspector's node_cache.find_node(). This function makes a SQL query using unfiltered data from a server reporting inspection results (by a POST to the /v1/continue endpoint). Because the API is unauthenticated, the flaw could be exploited by an attacker with access to the network on which ironic-inspector is listening. Because of how ironic-inspector uses the query results, it is unlikely that data could be obtained. However, the attacker could pass malicious data and create a denial of service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic-inspector"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic-inspector"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.1.0"
      }, {
        "fixed" : "6.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic-inspector"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.1.0"
      }, {
        "fixed" : "7.2.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic-inspector"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic-inspector"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.1.0"
      }, {
        "fixed" : "8.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10141"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/ironic-inspector/commit/17c796b49171b6133e988f78c92d7c9b7ed3fcf3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/ironic-inspector/commit/67ff87ebca1016d44bd9d284ec4c16a88a533cfc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/ironic-inspector/commit/97f9d34f8376ac7accd2597b3bdce67a9dac664f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/ironic-inspector/commit/9d107900b2e0b599397b84409580d46e0ed16291"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:2505"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10141"
  }, {
    "type" : "WEB",
    "url" : "https://docs.openstack.org/releasenotes/ironic-inspector/ocata.html#relnotes-5-0-2-7-origin-stable-ocata"
  }, {
    "type" : "WEB",
    "url" : "https://docs.openstack.org/releasenotes/ironic-inspector/pike.html#relnotes-6-0-3-4-stable-pike"
  }, {
    "type" : "WEB",
    "url" : "https://docs.openstack.org/releasenotes/ironic-inspector/queens.html#relnotes-7-2-4-stable-queens"
  }, {
    "type" : "WEB",
    "url" : "https://docs.openstack.org/releasenotes/ironic-inspector/rocky.html#relnotes-8-0-3-stable-rocky"
  }, {
    "type" : "WEB",
    "url" : "https://docs.openstack.org/releasenotes/ironic-inspector/stein.html#relnotes-8-2-1-stable-stein"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/ironic-inspector"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/ironic-inspector/PYSEC-2019-152.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/ironic-inspector/+/660234"
  }, {
    "type" : "WEB",
    "url" : "https://storyboard.openstack.org/#!/story/2005678"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T09:48:45Z",
    "nvd_published_at" : "2019-07-30T17:15:00Z"
  }
}