Moderate Command Injection Vulnerability in Environment-Modules Package
Summary
RLSA-2026:84594: Moderate: environment-modules security update. Affects environment-modules versions < 0:5.3.0-2.el9_8.1. Fixed in 0:5.3.0-2.el9_8.1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The environment-modules package is designed to facilitate dynamic modification of a user's environment through the use of module files. These module files contain essential information to configure the shell for various applications, allowing users to load and unload different software environments seamlessly. However, the package is susceptible to command injection vulnerabilities, particularly when handling module names that contain shell metacharacters.
Vulnerability Detail
The vulnerability, identified as CVE-2026-85013, arises from a command injection flaw in the Bash completion feature of the environment-modules package. This issue allows an attacker to craft malicious module names that exploit shell metacharacters, potentially leading to unauthorized command execution within the user's shell environment. The ramifications of this vulnerability can be severe, as it may allow attackers to execute arbitrary commands, compromise user data, or gain unauthorized access to system resources. The CVSS score for this vulnerability is 7.3, indicating a moderate level of risk.
How To Fix
Minimum fixed version
0:5.3.0-2.el9_8.1
This is the first release that contains the fix.
sudo dnf update environment-modules
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can avoid using module names that contain shell metacharacters until the package is updated. This can help mitigate the risk of command injection until a proper fix is applied.
Conclusion
The command injection vulnerability in the environment-modules package poses a moderate risk to users, allowing for potential unauthorized command execution. It is crucial to update to the patched version to mitigate this risk. Users are encouraged to remain vigilant and utilize tools like Vulert to monitor for vulnerabilities in their software.
See every vulnerability recorded for environment-modules →
FAQ
The environment-modules package allows users to dynamically modify their shell environment using module files, which configure the environment for different applications.
CVE-2026-85013 is the identifier for a command injection vulnerability in the environment-modules package that can be exploited through malicious module names.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Exploitation of this vulnerability can lead to unauthorized command execution, data compromise, and potential access to system resources.
You can update the package by running the command 'sudo dnf update environment-modules' in your terminal.
Related vulnerabilities
Recent vulnerabilities recorded for environment-modules.