{
  "id": "CVE-2026-85013",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-85013",
  "published_at": "2026-09-15T15:08:33.907Z",
  "title": "Environment-modules: command injection in environment-modules bash completion via malicious module names containing shell metacharacters",
  "vendor": "Red Hat",
  "product": "Red Hat Enterprise Linux 10",
  "cvss": {
    "score": 7.3,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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": "CWE-78",
  "cvss_by_source": {
    "cna": 7.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:5.6.1-2.el10_2.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:5.6.1-3.el10_3"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "0:4.5.2-5.el8_10"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:5.3.0-2.el9_8.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:5.3.0-3.el9_9"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Hardened Images",
        "ranges": null,
        "fixed_in": [
          "5.6.2-1.hum1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Enterprise Linux 10 to 0:5.6.1-2.el10_2.1 or later.",
      "Upgrade Red Hat Enterprise Linux 10 to 0:5.6.1-3.el10_3 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 0:4.5.2-5.el8_10 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:5.3.0-2.el9_8.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:5.3.0-3.el9_9 or later.",
      "Upgrade Red Hat Hardened Images to 5.6.2-1.hum1 or later."
    ],
    "workarounds": [
      "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."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:64766"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:80664"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:82919"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:84594"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:98460"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:98565"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
