Описание
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.
Отчет
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.
Меры по смягчению последствий
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.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 6 | environment-modules | Out of support scope | ||
| Red Hat Enterprise Linux 7 | environment-modules | Affected | ||
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-dashboard-rhel9 | Under investigation | ||
| Red Hat Enterprise Linux 10 | environment-modules | Fixed | RHSA-2026:80664 | 12.10.2026 |
| Red Hat Enterprise Linux 10 | environment-modules | Fixed | RHSA-2026:98565 | 11.11.2026 |
| Red Hat Enterprise Linux 8 | environment-modules | Fixed | RHSA-2026:82919 | 14.10.2026 |
| Red Hat Enterprise Linux 9 | environment-modules | Fixed | RHSA-2026:84594 | 19.10.2026 |
| Red Hat Enterprise Linux 9 | environment-modules | Fixed | RHSA-2026:98460 | 11.11.2026 |
| Red Hat Hardened Images | environment-modules-main-5.6.2-1.hum1 | Fixed | RHSA-2026:64766 | 07.09.2026 |
Показывать по
Дополнительная информация
Статус:
EPSS
7.3 High
CVSS3
Связанные уязвимости
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.
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.
Environment-modules: command injection in environment-modules bash completion via malicious module names containing shell metacharacters
A flaw was found in environment-modules. A local attacker can exploit ...
EPSS
7.3 High
CVSS3