---
id: CVE-2026-85013
title: A flaw was found in environment-modules
summary: >-
  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 `…
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
vendor: Red Hat
product: environment-modules-main
affected:
  - environment-modules-main (all versions)
  - environment-modules (all versions)
  - environment-modules
  - environment-modules (all versions)
  - environment-modules (all versions)
  - environment-modules (all versions)
published: '2026-09-15'
updated: '2026-09-21'
sourceUpdated: '2026-09-21T12:17:21.263'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85013'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:64766'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-85013'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2465635'
    label: secalert@redhat.com
  - url: >-
      https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg
    label: secalert@redhat.com
  - url: >-
      https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-85013.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-85013'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85013'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-15T17:20:35.841689Z'
epss: 0.00215
epssPercentile: 0.12213
ingestedAt: '2026-09-15T15:39:12.932Z'
patched:
  - hardened_images
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, … · updated 2026-09-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-85013.json)
- **RHSA-2026:64766** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-07 · [advisory](https://access.redhat.com/errata/RHSA-2026:64766)
