CVE-2026-85013

Environment-modules: command injection in environment-modules bash completion via malicious module names containing shell metacharacters

State
Published
Severity
7.3 High
Published
Sep 15, 2026
Updated
Oct 19, 2026
Reserved
Sep 2, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:Hredhat

Weaknesses

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Affected Products

ProductVersions
Red Hat Enterprise Linux 10Red Hat
  • 0:5.6.1-2.el10_2.1 and laterNot affected
Red Hat Enterprise Linux 8Red Hat
  • 0:4.5.2-5.el8_10 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 0:5.3.0-2.el9_8.1 and laterNot affected
Red Hat Hardened ImagesRed Hat
  • 5.6.2-1.hum1 and laterNot affected
Red Hat Enterprise Linux 6Red Hat
    Red Hat Enterprise Linux 7Red Hat

      References

      Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.