CVEfocus › CVE database › CVE-2026-85013

CVE-2026-85013Environment-modules: command injection in environment-modules bash completion via…

CVSS 7.3 HighEPSS 0.2% (higher than 8% of CVEs)Published 2026-09-15Updated 2026-11-11Assigner: redhat

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.

CWE-78

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
8Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10modulesFix pendingUBUNTU-CVE-2026-85013
Ubuntu 26.04modulesFix pendingUBUNTU-CVE-2026-85013
Ubuntu 24.04modulesUnder investigationUBUNTU-CVE-2026-85013
Ubuntu 22.04modulesUnder investigationUBUNTU-CVE-2026-85013
Ubuntu 20.04modulesFix pendingUBUNTU-CVE-2026-85013
Ubuntu 18.04modulesFix pendingUBUNTU-CVE-2026-85013
Ubuntu 16.04modulesFix pendingUBUNTU-CVE-2026-85013
Debian 14modulesFixed5.6.1-3DEBIAN-CVE-2026-85013
Debian 13modulesFix pendingDEBIAN-CVE-2026-85013
Debian 12modulesFix pendingDEBIAN-CVE-2026-85013
Red Hat Enterprise Linux 10environment-modulesFixed0:5.6.1-2.el10_2.1RHSA-2026:98565
Red Hat Enterprise Linux 9environment-modulesFixed0:5.3.0-2.el9_8.1RHSA-2026:98460
Red Hat Enterprise Linux 8environment-modulesFixed0:4.5.2-5.el8_10RHSA-2026:82919
Red Hat Enterprise Linux 7environment-modulesFix pending
Affected
Red Hat Enterprise Linux 6environment-modulesWill not fix
Out of support scope
AlmaLinux 10environment-modulesFixed5.6.1-3.el10_3ALSA-2026:80664
AlmaLinux 9environment-modulesFixed5.3.0-3.el9_9ALSA-2026:84594
AlmaLinux 8environment-modulesFixed4.5.2-5.el8_10ALSA-2026:82919
Rocky Linux 10environment-modulesFixed0:5.6.1-3.el10_3RLSA-2026:80664
Rocky Linux 9environment-modulesFixed0:5.3.0-2.el9_8.1RLSA-2026:98460
Rocky Linux 8environment-modulesFixed0:4.5.2-5.el8_10RLSA-2026:82919

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: 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.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.