# CVE-2026-85013: Environment-modules: command injection in environment-modules bash completion via malicious module names containing shell metacharacters

- Severity: High 7.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-15T15:08:33.907Z
- Modified: 2026-12-01T03:17:16.797Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- environment-modules: no versions given (not affected: from 0:5.6.1-2.el10_2.1 before *; from 0:5.6.1-3.el10_3 before *; from 0:4.5.2-5.el8_10 before *; from 0:5.3.0-2.el9_8.1 before *; from 0:5.3.0-3.el9_9 before *)
- discovery/discovery-ui-rhel9: no versions given (not affected: from 1795539844 before *)
- environment-modules-main: no versions given (not affected: from 5.6.2-1.hum1 before *)
- rhoai/odh-dashboard-rhel9: no versions given

## References

- <https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg> (exploit)
- <https://access.redhat.com/errata/RHSA-2026:104803> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:64766> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:80664> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:82919> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:84594> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:98460> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:98565> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-85013> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2465635> (issue-tracking)

## Sources

- CVE List: [CVE-2026-85013](https://www.cve.org/CVERecord?id=CVE-2026-85013), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-85013](https://nvd.nist.gov/vuln/detail/CVE-2026-85013), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-85013 · Whole record: https://cve.day/CVE-2026-85013.json · Rebuilt by cve.day 2026-12-01T03:32:12.549Z
