CVE-2026-42997: Ironic python agent Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-54w4-233h-x86g
CVSS 7.7
CWE-669
Published
Advisory Summary

CVE-2026-42997 is a HIGH (CVSS 7.7) remote code execution vulnerability (CWE-669: Incorrect Resource Transfer Between Spheres) affecting Ironic python agent libraries in the PyPI ecosystem. The issue involves openstack ironic has an incorrect resource transfer between spheres. Remediation is available by upgrading affected packages to version 35.0.1, 32.0.1, 29.0.5, 26.1.6.

CVE-2026-42997 at a Glance

CVE Identifier CVE-2026-42997
GHSA Identifier GHSA-54w4-233h-x86g
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-669: Incorrect Resource Transfer Between Spheres
Affected Product Ironic python agent
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.7

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

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

How to Fix CVE-2026-42997

To remediate this vulnerability, upgrade all affected Ironic python agent 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-python-agent fixed: 35.0.1
pip install ironic-python-agent>=35.0.1
ironic-python-agent fixed: 32.0.1
pip install ironic-python-agent>=32.0.1
ironic-python-agent fixed: 29.0.5
pip install ironic-python-agent>=29.0.5
ironic-python-agent fixed: 26.1.6
pip install ironic-python-agent>=26.1.6
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-python-agent

How to Check if You Are Affected

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

pip show ironic-python-agent

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-669: Incorrect Resource Transfer Between Spheres, where the product does not properly transfer a resource/behavior to another sphere, or improperly imports a resource/behavior from another sphere, in a manner that provides unintended control over that resource. In Ironic python agent, 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

An issue was discovered in idrac in OpenStack Ironic before 35.0.1. During import, a user invoking molds can request authorization to be sent to a remote endpoint. The credential forwarded is a time-limited Keystone token (which provides access to all OpenStack services Ironic is authorized for); or basic credentials configured for molds storage. The fixed versions are 26.1.6, 29.0.5, 32.0.1, and 35.0.1.

CVE-2026-42997 Affected Ironic python agent Versions

4 component(s)
Fixed Versions:
35.0.132.0.129.0.526.1.6
Product / Package Ecosystem Affected Versions Fixed Version
ironic-python-agent
PyPI
≥ 33.0.0
< 35.0.1
35.0.1
ironic-python-agent
PyPI
≥ 30.0.0
< 32.0.1
32.0.1
ironic-python-agent
PyPI
≥ 27.0.0
< 29.0.5
29.0.5
ironic-python-agent
PyPI
< 26.1.6
26.1.6

References

Frequently Asked Questions

What is CVE-2026-42997?
CVE-2026-42997 is a security vulnerability in Ironic python agent involving OpenStack Ironic has an Incorrect Resource Transfer Between Spheres under CWE-669: Incorrect Resource Transfer Between Spheres.
Which Ironic python agent versions are affected?
Affected versions include releases prior to 35.0.1, 32.0.1, 29.0.5, 26.1.6 across affected packages: ironic-python-agent.
What version fixes CVE-2026-42997?
Upgrading to 35.0.1, 32.0.1, 29.0.5, 26.1.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ironic-python-agent affected?
Yes, ironic-python-agent is affected in releases prior to 35.0.1, 32.0.1, 29.0.5, 26.1.6. Upgrade your dependency to 35.0.1, 32.0.1, 29.0.5, 26.1.6 or later.
What is the CVSS score of CVE-2026-42997?
CVE-2026-42997 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2026-42997?
CVE-2026-42997 is classified under CWE-669: Incorrect Resource Transfer Between Spheres (The product does not properly transfer a resource/behavior to another sphere, or improperly imports a resource/behavior from another sphere, in a manner that provides unintended control over that resource.).
How can I check PyPI dependencies for CVE-2026-42997?
Run the dependency tree command: 'pip show ironic-python-agent'. 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-54w4-233h-x86g",
  "modified" : "2026-05-08T23:07:56Z",
  "published" : "2026-05-05T21:31:31Z",
  "aliases" : [ "CVE-2026-42997" ],
  "summary" : "OpenStack Ironic has an Incorrect Resource Transfer Between Spheres",
  "details" : "An issue was discovered in idrac in OpenStack Ironic before 35.0.1. During import, a user invoking molds can request authorization to be sent to a remote endpoint. The credential forwarded is a time-limited Keystone token (which provides access to all OpenStack services Ironic is authorized for); or basic credentials configured for molds storage. The fixed versions are 26.1.6, 29.0.5, 32.0.1, and 35.0.1.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic-python-agent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "33.0.0"
      }, {
        "fixed" : "35.0.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic-python-agent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "30.0.0"
      }, {
        "fixed" : "32.0.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic-python-agent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "27.0.0"
      }, {
        "fixed" : "29.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ironic-python-agent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "26.1.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42997"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/ironic-python-agent"
  }, {
    "type" : "WEB",
    "url" : "https://security.openstack.org/ossa/OSSA-2026-010.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.openwall.com/lists/oss-security/2026/05/05/10"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/05/05/10"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-669" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-08T23:07:56Z",
    "nvd_published_at" : "2026-05-05T19:16:22Z"
  }
}