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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | — | — |
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
| Red Hat | Red Hat Hardened Images | — | — |
| Red Hat | Red Hat Enterprise Linux 6 | — | — |
| Red Hat | Red Hat Enterprise Linux 7 | — | — |
| Red Hat | Red Hat OpenShift AI (RHOAI) | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | modules | 5.6.1-3 | — |
| Debian 13 | modules | No fix yet | — |
| Debian 12 | modules | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | modules | No fix yet | — |
| Ubuntu 26.04 LTS | modules | No fix yet | — |
| Ubuntu 24.04 LTS | modules | No fix yet | — |
| Ubuntu 22.04 LTS | modules | No fix yet | — |
| Ubuntu 20.04 LTS | modules | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | modules | No fix yet | — |
| Ubuntu 16.04 LTS | modules | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | environment-modules | 5.6.1-2.el10_2.1 | RHSA-2026:80664 |
| RHEL 9 | environment-modules | 5.3.0-2.el9_8.1 | RHSA-2026:84594 |
| RHEL 8 | environment-modules | 4.5.2-5.el8_10 | RHSA-2026:82919 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | environment-modules | 5.6.2-1.hum1 | RHSA-2026:64766 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | environment-modules | 5.6.1-2.el10_2.1 | ALSA-2026:80664 |
| AlmaLinux 9 | environment-modules | 5.3.0-2.el9_8.1 | ALSA-2026:84594 |
| AlmaLinux 8 | environment-modules | 4.5.2-5.el8_10 | ALSA-2026:82919 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | environment-modules | 5.6.1-2.el10_2.1 | RLSA-2026:80664 |
| Rocky Linux 9 | environment-modules | 5.3.0-2.el9_8.1 | RLSA-2026:84594 |
| Rocky Linux 8 | environment-modules | 4.5.2-5.el8_10 | RLSA-2026:82919 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | environment-modules +1 | 4.8.0-1.amzn2023.0.3 | ALAS2023-2026-3135 |
| Amazon Linux 2 | environment-modules | 3.2.10-11.amzn2 | ALAS2-2026-3942 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | environment-modules | 5.3.2-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 10 | environment-modules | 5.6.1-2.el10_2.1 | ELSA-2026-80664 |
| Oracle Linux 9 | environment-modules | 5.3.0-2.el9_8.1 | ELSA-2026-84594 |
| Oracle Linux 8 | environment-modules | 4.5.2-5.el8_10 | ELSA-2026-82919 |
Advisories 16
- WID-SEC-2026-3883 Red Hat Enterprise Linux (goose, environment-modules, tornado): Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026
- ALSA-2026:84594 Moderate: environment-modules security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:80664 Moderate: environment-modules security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:82919 Moderate: environment-modules security update AlmaLinux Security Advisories · Oct 29, 2026
- RLSA-2026:84594 Moderate: environment-modules security update Rocky Linux Security Advisories · Oct 20, 2026
- RHSA-2026:84594 Red Hat Security Advisory: environment-modules security update Red Hat Security Advisories (RHSA) · Oct 19, 2026
- RHSA-2026:82919 Red Hat Security Advisory: environment-modules security update Red Hat Security Advisories (RHSA) · Oct 19, 2026
- RHSA-2026:80664 Red Hat Security Advisory: environment-modules security update Red Hat Security Advisories (RHSA) · Oct 19, 2026
- RHSA-2026:64766 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 19, 2026
- ELSA-2026-84594 Moderate: environment-modules security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Oct 19, 2026
- RLSA-2026:82919 Moderate: environment-modules security update Rocky Linux Security Advisories · Oct 15, 2026
- ELSA-2026-82919 Moderate: environment-modules security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Oct 15, 2026
- RLSA-2026:80664 Moderate: environment-modules security update Rocky Linux Security Advisories · Oct 13, 2026
- ELSA-2026-80664 Moderate: environment-modules security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Oct 12, 2026
- ALAS2023-2026-3135 Important: environment-modules security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Sep 28, 2026
- ALAS2-2026-3942 Important: environment-modules security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Sep 28, 2026
References
- RHSA-2026:64766 vendor-advisory
- RHSA-2026:80664 vendor-advisory
- RHSA-2026:82919 vendor-advisory
- RHSA-2026:84594 vendor-advisory
- RHSA-2026:98460 vendor-advisory
- RHSA-2026:98565 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-85013 vdb-entry
- RHBZ#2465635 issue-tracking
- https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg