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
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
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.3 High | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H | redhat |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Products
| Product | Versions |
|---|---|
Red Hat Enterprise Linux 10Red Hat |
|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Hardened ImagesRed Hat |
|
Red Hat Enterprise Linux 6Red Hat | |
Red Hat Enterprise Linux 7Red Hat |
References
- RHSA-2026:64766vendor-advisory
- RHSA-2026:80664vendor-advisory
- RHSA-2026:82919vendor-advisory
- RHSA-2026:84594vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-85013vdb-entry
- RHBZ#2465635issue-tracking
- https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg
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.