Vulnerability · Published Sep 15, 2026 · Assigned by redhat

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

High 7.3

In plain English

A high-severity OS command injection in Red Hat Enterprise Linux 10 from Red Hat. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.3High
Exploit odds (30 days)0.2%top 86.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10environment-modules5.6.1-2.el10_2.1ALSA-2026:80664
AlmaLinux:8environment-modules4.5.2-5.el8_10ALSA-2026:82919
AlmaLinux:9environment-modules5.3.0-2.el9_8.1ALSA-2026:84594
Debian:12modulesno fix listedDEBIAN-CVE-2026-85013
Debian:13modulesno fix listedDEBIAN-CVE-2026-85013
Debian:14modules5.6.1-3DEBIAN-CVE-2026-85013
Rocky Linux:10environment-modules0:5.6.1-2.el10_2.1RLSA-2026:80664
Rocky Linux:8environment-modules0:4.5.2-5.el8_10RLSA-2026:82919
Rocky Linux:9environment-modules0:5.3.0-2.el9_8.1RLSA-2026:84594
Ubuntu:22.04:LTSmodulesno fix listedUBUNTU-CVE-2026-85013
Ubuntu:24.04:LTSmodulesno fix listedUBUNTU-CVE-2026-85013
Ubuntu:26.04:LTSmodulesno fix listedUBUNTU-CVE-2026-85013
Ubuntu:26.10modulesno fix listedUBUNTU-CVE-2026-85013

Affected products (as reported)

Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

References