CVE-2024-47211: Ironic Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-8h22-6qwx-q4w9
CVSS 5.3
CWE-354
Published
Advisory Summary

CVE-2024-47211 is a MODERATE (CVSS 5.3) remote code execution vulnerability (CWE-354: Improper Validation of Integrity Check Value) affecting Ironic libraries in the PyPI ecosystem. The issue involves openstack ironic fails to verify checksums of supplied image_source urls. Remediation is available by upgrading affected packages to version 26.1.1, 24.1.3, 23.0.3.

CVE-2024-47211 at a Glance

CVE Identifier CVE-2024-47211
GHSA Identifier GHSA-8h22-6qwx-q4w9
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-354: Improper Validation of Integrity Check Value
Affected Product Ironic
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:N/A:L).

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 None (I:N)
Availability Low (A:L)

How to Fix CVE-2024-47211

To remediate this vulnerability, upgrade all affected Ironic 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 fixed: 26.1.1
pip install ironic>=26.1.1
ironic fixed: 24.1.3
pip install ironic>=24.1.3
ironic fixed: 23.0.3
pip install ironic>=23.0.3
ironic fixed: Latest secure release
pip install ironic>=Latest secure release
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

How to Check if You Are Affected

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

pip show ironic

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-354: Improper Validation of Integrity Check Value, where the product does not validate or incorrectly validates the integrity check values or "checksums" of a message. this may prevent it from detecting if the data has been modified or corrupted in transmission. In Ironic, 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

In OpenStack Ironic before 21.4.4, 22.x and 23.x before 23.0.3, 23.x and 24.x before 24.1.3, and 25.x and 26.x before 26.1.0, there is a lack of checksum validation of supplied image_source URLs when configured to convert images to a raw format for streaming.

CVE-2024-47211 Affected Ironic Versions

4 component(s)
Fixed Versions:
26.1.124.1.323.0.3
Product / Package Ecosystem Affected Versions Fixed Version
ironic
PyPI
≥ 25.0.0
< 26.1.1
26.1.1
ironic
PyPI
≥ 23.1.0
< 24.1.3
24.1.3
ironic
PyPI
≥ 22.0.0
< 23.0.3
23.0.3
ironic
PyPI
≤ 21.4.3

References

Frequently Asked Questions

What is CVE-2024-47211?
CVE-2024-47211 is a security vulnerability in Ironic involving OpenStack Ironic fails to verify checksums of supplied image_source URLs under CWE-354: Improper Validation of Integrity Check Value.
Which Ironic versions are affected?
Affected versions include releases prior to 26.1.1, 24.1.3, 23.0.3 across affected packages: ironic.
What version fixes CVE-2024-47211?
Upgrading to 26.1.1, 24.1.3, 23.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ironic affected?
Yes, ironic is affected in releases prior to 26.1.1, 24.1.3, 23.0.3, Latest secure release. Upgrade your dependency to 26.1.1, 24.1.3, 23.0.3, Latest secure release or later.
What is the CVSS score of CVE-2024-47211?
CVE-2024-47211 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2024-47211?
CVE-2024-47211 is classified under CWE-354: Improper Validation of Integrity Check Value (The product does not validate or incorrectly validates the integrity check values or "checksums" of a message. This may prevent it from detecting if the data has been modified or corrupted in transmission.).
How can I check PyPI dependencies for CVE-2024-47211?
Run the dependency tree command: 'pip show ironic'. 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-8h22-6qwx-q4w9",
  "modified" : "2024-11-05T18:34:25Z",
  "published" : "2024-10-04T18:31:11Z",
  "aliases" : [ "CVE-2024-47211" ],
  "summary" : "OpenStack Ironic fails to verify checksums of supplied image_source URLs",
  "details" : "In OpenStack Ironic before 21.4.4, 22.x and 23.x before 23.0.3, 23.x and 24.x before 24.1.3, and 25.x and 26.x before 26.1.0, there is a lack of checksum validation of supplied image_source URLs when configured to convert images to a raw format for streaming.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "25.0.0"
      }, {
        "fixed" : "26.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "23.1.0"
      }, {
        "fixed" : "24.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "22.0.0"
      }, {
        "fixed" : "23.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "21.4.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-47211"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/ironic/commit/2127cc4c93770778457fde0582c1bba258c67e02"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/ironic/commit/7a1292c569a84eb05806a57a89fca5bb6b0c4043"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/ironic/commit/ebce0fd0845de411171127a55002ae7c9605de57"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/ironic"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/ironic/compare/24.1.2...26.1.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/ironic/security"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/ironic/tags"
  }, {
    "type" : "WEB",
    "url" : "https://security.openstack.org/ossa/OSSA-2024-004.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-354" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-04T20:31:16Z",
    "nvd_published_at" : "2024-10-04T18:15:08Z"
  }
}