Uncontrolled recursion in Red Hat libmodulemd can cause denial of service

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-92822?

CVE-2026-92822 is a vulnerability classified as Uncontrolled Recursion, affecting Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, and 3 more products. This vulnerability is rated Medium, with a CVSS score of 6.2. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

A flaw was found in libmodulemd. When parsing module metadata, the xmd field is converted into nested GVariant values through recursive YAML mapping and sequence helpers without a recursion-depth or node-count limit. An attacker who can supply crafted modulemd YAML with deeply nested xmd content can cause stack exhaustion or excessive resource consumption, resulting in a denial of service.

Affected products and scope

Red Hat identifies the following products and components as affected:

  • Red Hat Enterprise Linux 8: libmodulemd-devel, libmodulemd.src, libmodulemd1, and python3-libmodulemd. Remediation status is recorded as deferred, with no specific fix established.
  • Red Hat Enterprise Linux 9: libmodulemd-devel, libmodulemd.src, and python3-libmodulemd. The current status is affected; no specific fixed release has been established.
  • Red Hat Enterprise Linux 10: libmodulemd-devel, libmodulemd.src, and python3-libmodulemd. The current status is affected; no specific fixed release has been established.
  • Red Hat Hardened Images: libmodulemd.src, currently identified as affected.
  • Red Hat OpenShift Container Platform 4: openshift/ose-rhel-coreos-8 and openshift/ose-rhel-coreos-9. Remediation status is recorded as deferred.
  • Red Hat OpenShift Container Platform 5: openshift/ose-rhel-coreos-9. Remediation status is recorded as deferred.

No exact fixed-version boundary or corrected release is established in the available data.

Technical details

Red Hat libmodulemd parses the xmd field in module metadata by converting YAML mappings and sequences into nested GVariant values. When nested mappings or sequences are encountered, mmd_variant_from_mapping() and mmd_variant_from_sequence() recurse again without a recursion-depth limit or a total parsed-node limit. The path is entered through mmd_parse_xmd() and is used for xmd handling in module stream v1, module stream v2, and packager v3 documents. Public parsing interfaces identified in the report include modulemd_module_index_update_from_string(), modulemd_module_index_update_from_stream(), modulemd_module_index_update_from_custom(), and the modulemd-validator tool. An attacker must cause an application or tool using libmodulemd to parse attacker-controlled modulemd YAML containing sufficiently deep xmd nesting. The exact depth or node-count threshold that triggers failure depends on the runtime environment and is not established by the available evidence.

Exploitability

  • Reachability is assessed as local; the available evidence does not establish a specific network-facing service in libmodulemd.
  • No special privileges are required when an attacker can supply malicious YAML to a parser that accepts untrusted input. No separate user interaction is required beyond normal parsing of the supplied document.
  • The precondition is that an application parses crafted xmd content containing deeply nested mappings or sequences.
  • The normalized record marks a public exploit as available. The enrichment provided with the record describes exploitation as a PoC and not automatable.
  • Practical exposure depends on whether the deployment accepts and parses attacker-controlled module metadata or processes only trusted metadata.

Technical impact

  • The direct technical result may be stack exhaustion, a crash, an abort, or severe CPU and memory pressure in the parsing process.
  • The primary impact is loss of parser or service availability; disruption can extend to validation, indexing, or ingestion pipelines when those processes share resources.
  • The available evidence does not establish confidentiality, integrity, or code-execution impact.
  • No special privileges are required when an attacker can supply malicious modulemd data to the parser, but whether that condition exists depends on the deployment architecture.
  • Deployments that process only trusted metadata have lower practical exposure, but the absence of an observed failure does not prove that the system is fixed.

Business impact

  • A malicious modulemd document can disrupt a process or tool that performs metadata validation, indexing, or ingestion.
  • If the parser runs in a shared pipeline, a crash or excessive resource consumption can delay or interrupt other module-processing tasks.
  • The established consequence is an availability impact. The available evidence does not establish data disclosure, data modification, or code execution.
  • Practical exposure depends on whether the organization accepts untrusted module metadata or processes only controlled metadata.

Remediation

  1. Monitor Red Hat errata and apply the first update that Red Hat explicitly confirms as fixing the flaw. No specific fixed release has been established, so the existence of an advisory must not be treated as proof that an arbitrary release is safe.
  2. Until a fix is available, avoid passing modulemd documents with attacker-controlled xmd data to libmodulemd.
  3. If untrusted input must be accepted, reject unusually deep or large xmd structures before handing them to libmodulemd.
  4. Isolate the parsing process and enforce strict stack, CPU, and memory limits to reduce the chance that malicious input affects the wider service.
  5. A code-level fix should bound both recursion depth and total parsed nodes in the xmd conversion path and return an error when either limit is exceeded.

Detection

  1. Inventory systems using libmodulemd, including library, development, Python binding, image, and node components identified by Red Hat as affected.
  2. Identify applications or tools that call modulemd_module_index_update_from_string(), modulemd_module_index_update_from_stream(), modulemd_module_index_update_from_custom(), or use modulemd-validator.
  3. Review input paths to determine whether external or otherwise untrusted modulemd YAML can reach the parser, especially documents containing an xmd field.
  4. Review parser crashes, aborts, stack exhaustion, or unusual CPU and memory consumption while processing module metadata. These are operational symptoms consistent with the described mechanism, not confirmed unique indicators.
  5. Verify whether the parser is isolated with stack, CPU, and memory limits.
  6. No specific log signature or IOC has been established. The absence of these symptoms does not prove that a system is safe.
Sources (9)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.