{"id":"CVE-2026-85013","published":"2026-09-15T15:08:33Z","modified":"2026-11-11T19:08:54Z","title":"Environment-modules: command injection in environment-modules bash completion via malicious module names containing…","vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00278,"percentile":0.20689,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:64766","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:80664","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:82919","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:84594","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:98460","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:98565","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-85013","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2465635","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg","tags":[]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":4.14},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Hardened Images","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","versions":["all versions"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-09-15T17:20:35.841689Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-78780","exploited":false,"provenance":"source"}}