RHSA-2026:64766

Vulnerability from csaf_redhat - Published: 2026-09-07 09:12 - Updated: 2026-09-21 11:43
Summary
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Severity
Moderate
Notes
Topic: An update for Red Hat Hardened Images RPMs is now available.
Details: This update includes the following RPMs: environment-modules: * environment-modules-5.6.2-1.hum1 (aarch64, x86_64) * environment-modules-5.6.2-1.hum1.src (src)
Terms of Use: This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.

A flaw was found in environment-modules. A local attacker can exploit this vulnerability by placing a maliciously named modulefile in a location visible to the victim's `MODULEPATH`. When the victim uses Bash completion for `module` or `ml` commands, the malicious module name, containing shell metacharacters, is evaluated as a command. This can lead to arbitrary command execution in the completing user's shell, impacting their confidentiality, integrity, and availability.

CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected products
Product Identifier Version Remediation
Unresolved product id: Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@aarch64
Vendor Fix fix
Workaround
Unresolved product id: Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@src
Vendor Fix fix
Workaround
Unresolved product id: Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@x86_64
Vendor Fix fix
Workaround
Threats
Impact Moderate
Acknowledgments

{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Moderate"
    },
    "category": "csaf_security_advisory",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright \u00a9 Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "summary",
        "text": "An update for Red Hat Hardened Images RPMs is now available.",
        "title": "Topic"
      },
      {
        "category": "general",
        "text": "This update includes the following RPMs:\n\nenvironment-modules:\n  * environment-modules-5.6.2-1.hum1 (aarch64, x86_64)\n  * environment-modules-5.6.2-1.hum1.src (src)",
        "title": "Details"
      },
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "https://access.redhat.com/errata/RHSA-2026:64766",
        "url": "https://access.redhat.com/errata/RHSA-2026:64766"
      },
      {
        "category": "external",
        "summary": "https://images.redhat.com/",
        "url": "https://images.redhat.com/"
      },
      {
        "category": "external",
        "summary": "https://access.redhat.com/security/cve/CVE-2026-85013",
        "url": "https://access.redhat.com/security/cve/CVE-2026-85013"
      },
      {
        "category": "external",
        "summary": "https://access.redhat.com/security/updates/classification/",
        "url": "https://access.redhat.com/security/updates/classification/"
      },
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_64766.json"
      }
    ],
    "title": "Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update",
    "tracking": {
      "current_release_date": "2026-09-21T11:43:01+00:00",
      "generator": {
        "date": "2026-09-21T11:43:01+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "5.4.0"
        }
      },
      "id": "RHSA-2026:64766",
      "initial_release_date": "2026-09-07T09:12:19+00:00",
      "revision_history": [
        {
          "date": "2026-09-07T09:12:19+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2026-09-15T19:06:30+00:00",
          "number": "2",
          "summary": "Last updated version"
        },
        {
          "date": "2026-09-21T11:43:01+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Hardened Images",
                "product": {
                  "name": "Red Hat Hardened Images",
                  "product_id": "Red Hat Hardened Images",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:hummingbird:1"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Hardened Images"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "environment-modules-0:5.6.2-1.hum1@aarch64",
                "product": {
                  "name": "environment-modules-0:5.6.2-1.hum1@aarch64",
                  "product_id": "environment-modules-0:5.6.2-1.hum1@aarch64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/redhat/environment-modules@5.6.2-1.hum1?arch=aarch64\u0026distro=hummingbird-20251124\u0026repository_id=public-hummingbird-aarch64-rpms"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "aarch64"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "environment-modules-0:5.6.2-1.hum1@src",
                "product": {
                  "name": "environment-modules-0:5.6.2-1.hum1@src",
                  "product_id": "environment-modules-0:5.6.2-1.hum1@src",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/redhat/environment-modules@5.6.2-1.hum1?arch=src\u0026distro=hummingbird-20251124\u0026repository_id=public-hummingbird-source-rpms"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "src"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "environment-modules-0:5.6.2-1.hum1@x86_64",
                "product": {
                  "name": "environment-modules-0:5.6.2-1.hum1@x86_64",
                  "product_id": "environment-modules-0:5.6.2-1.hum1@x86_64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/redhat/environment-modules@5.6.2-1.hum1?arch=x86_64\u0026distro=hummingbird-20251124\u0026repository_id=public-hummingbird-x86_64-rpms"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "x86_64"
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "environment-modules-0:5.6.2-1.hum1@aarch64 as a component of Red Hat Hardened Images",
          "product_id": "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@aarch64"
        },
        "product_reference": "environment-modules-0:5.6.2-1.hum1@aarch64",
        "relates_to_product_reference": "Red Hat Hardened Images"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "environment-modules-0:5.6.2-1.hum1@src as a component of Red Hat Hardened Images",
          "product_id": "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@src"
        },
        "product_reference": "environment-modules-0:5.6.2-1.hum1@src",
        "relates_to_product_reference": "Red Hat Hardened Images"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "environment-modules-0:5.6.2-1.hum1@x86_64 as a component of Red Hat Hardened Images",
          "product_id": "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@x86_64"
        },
        "product_reference": "environment-modules-0:5.6.2-1.hum1@x86_64",
        "relates_to_product_reference": "Red Hat Hardened Images"
      }
    ]
  },
  "vulnerabilities": [
    {
      "acknowledgments": [
        {
          "summary": "This issue was discovered by Red Hat."
        }
      ],
      "cve": "CVE-2026-85013",
      "cwe": {
        "id": "CWE-78",
        "name": "Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"
      },
      "discovery_date": "2026-05-04T15:54:57+00:00",
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "2465635"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "A flaw was found in environment-modules. A local attacker can exploit this vulnerability by placing a maliciously named modulefile in a location visible to the victim\u0027s `MODULEPATH`. When the victim uses Bash completion for `module` or `ml` commands, the malicious module name, containing shell metacharacters, is evaluated as a command. This can lead to arbitrary command execution in the completing user\u0027s shell, impacting their confidentiality, integrity, and availability.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "environment-modules: Command injection in environment-modules Bash completion via malicious module names containing shell metacharacters",
          "title": "Vulnerability summary"
        },
        {
          "category": "other",
          "text": "This Moderate impact flaw in `environment-modules` allows a local attacker to execute arbitrary commands by crafting malicious module names. Exploitation requires the attacker to influence the `MODULEPATH` and the victim to use Bash completion for `module` or `ml` commands, triggering the vulnerability through user interaction. This limits the broad exploitability, aligning with a Moderate classification.",
          "title": "Statement"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product\u0027s status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "fixed": [
          "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@aarch64",
          "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@src",
          "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@x86_64"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2026-85013"
        },
        {
          "category": "external",
          "summary": "RHBZ#2465635",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2465635"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2026-85013",
          "url": "https://www.cve.org/CVERecord?id=CVE-2026-85013"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2026-85013",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-85013"
        },
        {
          "category": "external",
          "summary": "https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg",
          "url": "https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg"
        }
      ],
      "release_date": "2026-09-15T14:10:00+00:00",
      "remediations": [
        {
          "category": "vendor_fix",
          "date": "2026-09-07T09:12:19+00:00",
          "details": "For details on how to apply this update, which includes the changes described in this advisory, refer to:\nhttps://images.redhat.com/",
          "product_ids": [
            "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@aarch64",
            "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@src",
            "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@x86_64"
          ],
          "restart_required": {
            "category": "none"
          },
          "url": "https://access.redhat.com/errata/RHSA-2026:64766"
        },
        {
          "category": "workaround",
          "details": "To mitigate this issue, avoid enabling Bash completion for `module` and `ml` in environments where untrusted users can influence `MODULEPATH`. Additionally, ensure that shared module search paths do not include attacker-writable directories. As a practical measure, the affected completion script can be removed or disabled by commenting out its sourcing in shell configuration files (e.g., `~/.bashrc` or `/etc/profile.d/`). Users must start a new shell session for changes to take effect.",
          "product_ids": [
            "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@aarch64",
            "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@src",
            "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@x86_64"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "LOCAL",
            "availabilityImpact": "HIGH",
            "baseScore": 7.3,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@aarch64",
            "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@src",
            "Red Hat Hardened Images:environment-modules-0:5.6.2-1.hum1@x86_64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate"
        }
      ],
      "title": "environment-modules: Command injection in environment-modules Bash completion via malicious module names containing shell metacharacters"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…