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

CVE-2026-85013 is fixed in 6 products on 1 platform, first by DEBIAN-CVE-2026-85013, released September 12, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-85013
- Priority: High
- CVSS: 7.3 (Important)
- EPSS: 0.0023
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 15, 2026
- Weakness: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-85013

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | environment-modules RHEL 10 | 5.6.1-2.el10_2.1 | [RHSA-2026:80664](https://patchblox.com/security/data/fix/linux/rhsa-2026-80664.md) | Oct 13, 2026 |
| Linux | environment-modules RHEL 8 | 0:4.5.2-5.el8_10 | [RHSA-2026:82919](https://patchblox.com/security/data/fix/linux/rhsa-2026-82919.md) | Oct 16, 2026 |
| Linux | environment-modules RHEL 9 | 0:5.3.0-2.el9_8.1 | [RHSA-2026:84594](https://patchblox.com/security/data/fix/linux/rhsa-2026-84594.md) | Oct 19, 2026 |
| Linux | environment-modules almalinux 10 | 5.6.1-2.el10_2.1 | [ALSA-2026:80664](https://patchblox.com/security/data/fix/linux/alsa-2026-80664.md) | Nov 7, 2026 |
| Linux | environment-modules almalinux 8 | 4.5.2-5.el8_10 | [ALSA-2026:82919](https://patchblox.com/security/data/fix/linux/alsa-2026-82919.md) | Nov 7, 2026 |
| Linux | environment-modules almalinux 9 | 5.3.0-2.el9_8.1 | [ALSA-2026:84594](https://patchblox.com/security/data/fix/linux/alsa-2026-84594.md) | Nov 7, 2026 |
| Linux | environment-modules amzn 2023 | 4.8.0-1.amzn2023.0.3 | [ALAS2023-2026-3135](https://patchblox.com/security/data/fix/linux/alas2023-2026-3135.md) | Sep 28, 2026 |
| Linux | environment-modules ol 10 | 0:5.6.1-2.el10_2.1 | [ELSA-2026-80664](https://patchblox.com/security/data/fix/linux/elsa-2026-80664.md) | Nov 7, 2026 |
| Linux | environment-modules ol 8 | 0:4.5.2-5.el8_10 | [ELSA-2026-82919](https://patchblox.com/security/data/fix/linux/elsa-2026-82919.md) | Nov 7, 2026 |
| Linux | environment-modules ol 9 | 0:5.3.0-2.el9_8.1 | [ELSA-2026-84594](https://patchblox.com/security/data/fix/linux/elsa-2026-84594.md) | Nov 7, 2026 |
| Linux | environment-modules rocky 10 | 0:5.6.1-2.el10_2.1 | [RLSA-2026:80664](https://patchblox.com/security/data/fix/linux/rlsa-2026-80664.md) | Nov 7, 2026 |
| Linux | environment-modules rocky 8 | 0:4.5.2-5.el8_10 | [RLSA-2026:82919](https://patchblox.com/security/data/fix/linux/rlsa-2026-82919.md) | Nov 7, 2026 |
| Linux | environment-modules rocky 9 | 0:5.3.0-2.el9_8.1 | [RLSA-2026:84594](https://patchblox.com/security/data/fix/linux/rlsa-2026-84594.md) | Nov 7, 2026 |
| Linux | environment-modules-compat amzn 2023 | 4.8.0-1.amzn2023.0.3 | [ALAS2023-2026-3135](https://patchblox.com/security/data/fix/linux/alas2023-2026-3135.md) | Sep 28, 2026 |
| Linux | environment-modules-compat-debuginfo amzn 2023 | 4.8.0-1.amzn2023.0.3 | [ALAS2023-2026-3135](https://patchblox.com/security/data/fix/linux/alas2023-2026-3135.md) | Sep 28, 2026 |
| Linux | environment-modules-debuginfo amzn 2023 | 4.8.0-1.amzn2023.0.3 | [ALAS2023-2026-3135](https://patchblox.com/security/data/fix/linux/alas2023-2026-3135.md) | Sep 28, 2026 |
| Linux | environment-modules-debugsource amzn 2023 | 4.8.0-1.amzn2023.0.3 | [ALAS2023-2026-3135](https://patchblox.com/security/data/fix/linux/alas2023-2026-3135.md) | Sep 28, 2026 |
| Linux | modules Debian 14 | 5.6.1-3 | [DEBIAN-CVE-2026-85013](https://patchblox.com/security/data/fix/linux/debian-cve-2026-85013.md) | Sep 12, 2026 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
