CVE-2026-85013
Received Received - Intake

Command Injection via Bash Completion in Environment Modules

Vulnerability report for CVE-2026-85013, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-15

Last updated on: 2026-09-15

Assigner: redhat-SADP

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-15
Last Modified
2026-09-15
Generated
2026-09-15
AI Q&A
2026-09-15
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 5 associated CPEs
Vendor Product Version / Range
environment-modules environment-modules 5.6.1
environment-modules environment-modules From 3.2.7 (inc) to 4.5.4 (exc)
environment-modules environment-modules From 4.5.4 (inc) to 5.3.2 (exc)
environment-modules environment-modules From 5.3.2 (inc) to 5.6.1 (inc)
environment-modules environment-modules *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a command injection vulnerability in the environment-modules package's Bash completion feature. An attacker can place a maliciously named module file in a directory 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 executed as a command, leading to arbitrary command execution in the victim's shell.

Detection Guidance

Check if the environment-modules package is installed and review module files in MODULEPATH for suspicious names containing shell metacharacters like $(...). Inspect Bash completion scripts for module or ml commands in shell configuration directories (e.g., /etc/bash_completion.d/). Look for files named module or ml in common completion paths.

Impact Analysis

This vulnerability can lead to arbitrary command execution in your shell session when using Bash completion for module or ml commands. This may compromise your system's confidentiality, integrity, and availability. An attacker could gain control over your system, access sensitive data, modify files, or disrupt services.

Compliance Impact

This vulnerability could lead to unauthorized access or data breaches, which may violate compliance requirements under GDPR (data protection) and HIPAA (health information privacy). Organizations affected by this flaw may face legal penalties, reputational damage, and loss of trust due to compromised data confidentiality and integrity.

Mitigation Strategies

Disable Bash completion for module and ml commands by removing or renaming the completion scripts in /etc/bash_completion.d/. Avoid including untrusted directories in MODULEPATH. Update the environment-modules package to a patched version (4.5.4, 5.3.2, or 5.6.2).

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-85013. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart