CVE-2026-85013 Environment-modules: command injection in environment-modules bash completion via malicious module names containing shell metacharacters
HighCVSS 7.3
EPSS 0.28%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebianRed Hat
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/environment-modules(Red Hat:enterprise_linux:10.2) | < 5.6.1-2.el10_2.1 | 5.6.1-2.el10_2.1 |
| redhat/environment-modules(Red Hat:enterprise_linux:10.3) | < 5.6.1-3.el10_3 | 5.6.1-3.el10_3 |
| redhat/environment-modules(Red Hat:enterprise_linux:8) | < 4.5.2-5.el8_10 | 4.5.2-5.el8_10 |
| redhat/environment-modules(Red Hat:enterprise_linux:9) | < 5.3.0-2.el9_8.1 | 5.3.0-2.el9_8.1 |
| redhat/environment-modules-main(Red Hat:hummingbird:1) | < 5.6.2-1.hum1 | 5.6.2-1.hum1 |
| redhat/environment-modules(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/environment-modules(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| ubuntu/modules(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/modules(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/modules(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/modules(Ubuntu:26.10) | All versions | No fix listed |
| redhat enterprise linux | < 0:5.6.1-2.el10_2.1 | 0:5.6.1-2.el10_2.1 |
| redhat enterprise linux | < 0:5.6.1-3.el10_3 | 0:5.6.1-3.el10_3 |
| redhat enterprise linux | < 0:4.5.2-5.el8_10 | 0:4.5.2-5.el8_10 |
| redhat enterprise linux | < 0:5.3.0-2.el9_8.1 | 0:5.3.0-2.el9_8.1 |
| redhat enterprise linux | < 0:5.3.0-3.el9_9 | 0:5.3.0-3.el9_9 |
| redhat hummingbird | < 5.6.2-1.hum1 | 5.6.2-1.hum1 |
| redhat rhel els | = 6 | No fix listed |
| redhat rhel els | All versions | No fix listed |
| redhat openshift ai | All versions | No fix listed |
| debian/modules(Debian:12) | All versions | No fix listed |
| debian/modules(Debian:12) | = 5.2.0-1 | No fix listed |
| debian/modules(Debian:12) | = 5.3.0-1 | No fix listed |
| debian/modules(Debian:12) | = 5.3.0-2 | No fix listed |
Show 23 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/modules(Debian:12) | = 5.3.1-1 | No fix listed |
| debian/modules(Debian:12) | = 5.4.0-1 | No fix listed |
| debian/modules(Debian:12) | = 5.5.0-1 | No fix listed |
| debian/modules(Debian:12) | = 5.6.0-1 | No fix listed |
| debian/modules(Debian:12) | = 5.6.1-1 | No fix listed |
| debian/modules(Debian:12) | = 5.6.1-2 | No fix listed |
| debian/modules(Debian:12) | = 5.6.1-3 | No fix listed |
| debian/modules(Debian:12) | = 5.6.2-1 | No fix listed |
| debian/modules(Debian:12) | = 5.7.0-1 | No fix listed |
| debian/modules(Debian:13) | All versions | No fix listed |
| debian/modules(Debian:13) | = 5.5.0-1 | No fix listed |
| debian/modules(Debian:13) | = 5.6.0-1 | No fix listed |
| debian/modules(Debian:13) | = 5.6.1-1 | No fix listed |
| debian/modules(Debian:13) | = 5.6.1-2 | No fix listed |
| debian/modules(Debian:13) | = 5.6.1-3 | No fix listed |
| debian/modules(Debian:13) | = 5.6.2-1 | No fix listed |
| debian/modules(Debian:13) | = 5.7.0-1 | No fix listed |
| debian/modules(Debian:14) | < 5.6.1-3 | 5.6.1-3 |
| debian/modules(Debian:14) | = 5.5.0-1 | No fix listed |
| debian/modules(Debian:14) | = 5.6.0-1 | No fix listed |
| debian/modules(Debian:14) | = 5.6.1-1 | No fix listed |
| debian/modules(Debian:14) | = 5.6.1-2 | No fix listed |
| azure linux environment-modules(Azure Linux:3.0) | < 5.3.2-1 | 5.3.2-1 |
References
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- RHSA-2026:64766 patch vendor-advisory
- RHSA-2026:80664 patch vendor-advisory
- RHSA-2026:82919 patch vendor-advisory
- RHSA-2026:84594 patch vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2465635 issue-tracking
- github.com exploit
- RHSA-2026:98565 patch vendor-advisory
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-85013 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- RHSA-2026:98460 vendor-advisory