cve.bz

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

7.3 highEPSS 0.3%Fix available

High (7.3) in red hat. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.3 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 20th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-09-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:5.6.1-2.el10_2.1
  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:5.6.1-3.el10_3
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:4.5.2-5.el8_10
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:5.3.0-2.el9_8.1
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:5.3.0-3.el9_9
  • Red Hat Red Hat Hardened Images: fixed in 5.6.2-1.hum1
  • Debian, Red Hat, AlmaLinux, Rocky Linux, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-85013 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-85013?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-85013?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-85013 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • red hat:red hat enterprise linux 10
  • red hat:red hat enterprise linux 6
  • red hat:red hat enterprise linux 7
  • red hat:red hat enterprise linux 8
  • red hat:red hat enterprise linux 9
  • red hat:red hat hardened images
  • red hat:red hat openshift ai (rhoai)

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:5.6.1-2.el10_2.1
Red Hat Enterprise Linux 100:5.6.1-3.el10_3
Red Hat Enterprise Linux 80:4.5.2-5.el8_10
Red Hat Enterprise Linux 90:5.3.0-2.el9_8.1
Red Hat Enterprise Linux 90:5.3.0-3.el9_9
Red Hat Hardened Images5.6.2-1.hum1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13modulesno fix listedDEBIAN-CVE-2026-85013
Debian14modules5.6.1-3DEBIAN-CVE-2026-85013
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 moremodulesno fix listedUBUNTU-CVE-2026-85013
Red Hatenterprise_linux:8::baseosenvironment-modules, environment-modules-debuginfo, environment-modules-debugsource and 1 more0:4.5.2-5.el8_10RHSA-2026:82919
Red Hatenterprise_linux:9::baseosenvironment-modules, environment-modules-debuginfo, environment-modules-debugsource0:5.3.0-2.el9_8.1RHSA-2026:84594
Red Hatenterprise_linux:9::baseosenvironment-modules, environment-modules-debuginfo, environment-modules-debugsource0:5.3.0-3.el9_9RHSA-2026:98460
Red Hatenterprise_linux:10.2environment-modules, environment-modules-debuginfo, environment-modules-debugsource0:5.6.1-2.el10_2.1RHSA-2026:80664
Red Hatenterprise_linux:10.3environment-modules, environment-modules-debuginfo, environment-modules-debugsource0:5.6.1-3.el10_3RHSA-2026:98565
Red Hathummingbird:1environment-modules0:5.6.2-1.hum1RHSA-2026:64766
AlmaLinux8environment-modules4.5.2-5.el8_10ALSA-2026:82919
AlmaLinux9environment-modules5.3.0-2.el9_8.1ALSA-2026:84594
AlmaLinux9environment-modules5.3.0-3.el9_9ALSA-2026:98460
AlmaLinux10environment-modules5.6.1-2.el10_2.1ALSA-2026:80664
AlmaLinux10environment-modules5.6.1-3.el10_3ALSA-2026:98565
Rocky Linux8environment-modules0:4.5.2-5.el8_10RLSA-2026:82919
Rocky Linux9environment-modules0:5.3.0-2.el9_8.1RLSA-2026:84594
Rocky Linux9environment-modules, environment-modules-debuginfo, environment-modules-debugsource0:5.3.0-3.el9_9RLSA-2026:98460
Rocky Linux10environment-modules0:5.6.1-2.el10_2.1RLSA-2026:80664
Rocky Linux10environment-modules, environment-modules-debuginfo, environment-modules-debugsource0:5.6.1-3.el10_3RLSA-2026:98565
Azure Linux3environment-modules5.3.2-1AZL-107969

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate impact flaw in `environment-modules` allows a local attacker to execute arbitrary commands by crafting malicious module names. Exploitation requires the attacker to influence the `MODULEPATH` and the victim to use Bash completion for `module` or `ml` commands, triggering the vulnerability through user interaction. This limits the broad exploitability, aligning with a Moderate classification.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10environment-modules-0:5.6.1-2.el10_2.1Fixed 2026-10-12RHSA-2026:80664
Red Hat Enterprise Linux 10environment-modules-0:5.6.1-3.el10_3Fixed 2026-11-11RHSA-2026:98565
Red Hat Enterprise Linux 8environment-modules-0:4.5.2-5.el8_10Fixed 2026-10-14RHSA-2026:82919
Red Hat Enterprise Linux 9environment-modules-0:5.3.0-2.el9_8.1Fixed 2026-10-19RHSA-2026:84594
Red Hat Hardened Imagesenvironment-modules-main-5.6.2-1.hum1Fixed 2026-09-07RHSA-2026:64766
Red Hat Enterprise Linux 6environment-modulesOut of support scope
Red Hat Enterprise Linux 7environment-modulesAffected
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Under investigation

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-85013.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON