CVE-2026-85013
Environment-modules: command injection in environment-modules bash completion via malicious module names containing shell metacharacters
What happened?
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 software and versions
| Software | Version information | Fixed version |
|---|---|---|
| environment-modulesRed Hat | unaffected: 0:5.6.1-2.el10_2.1 to < * | See vendor advisory |
| environment-modulesRed Hat | unaffected: 0:4.5.2-5.el8_10 to < * | See vendor advisory |
| environment-modulesRed Hat | unaffected: 0:5.3.0-2.el9_8.1 to < * | See vendor advisory |
| environment-modules-mainRed Hat | unaffected: 5.6.2-1.hum1 to < * | See vendor advisory |
| environment-modulesRed Hat | Default status: unknown | See vendor advisory |
| environment-modulesRed Hat | Default status: affected | See vendor advisory |
| rhoai/odh-dashboard-rhel9Red Hat | Default status: unknown | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-85013
- https://access.redhat.com/errata/RHSA-2026:64766
- https://access.redhat.com/errata/RHSA-2026:80664
- https://access.redhat.com/errata/RHSA-2026:82919
- https://access.redhat.com/errata/RHSA-2026:84594
- https://access.redhat.com/security/cve/CVE-2026-85013
- https://bugzilla.redhat.com/show_bug.cgi?id=2465635
- https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg