
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-43837 affects vault-cli, a configurable command-line interface tool and Python library designed to interact with HashiCorp Vault. The vulnerability was discovered in versions before 3.0.0, where the software's template rendering feature could lead to Remote Code Execution (RCE). The issue was disclosed on December 16, 2021, and involves the software's handling of Jinja2 templates when processing secrets (GitHub Advisory).
The vulnerability stems from vault-cli's feature that interprets secrets prefixed with '!template!' as Jinja2 templates. When a secret value begins with this prefix, the software processes the remainder as a Jinja2 template. Since Jinja2 is a powerful templating engine not designed for safely rendering arbitrary templates, this implementation creates a security risk. The vulnerability received a CVSS v3.1 score of 8.5 (High), with the following vector: CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H (GitHub Advisory).
The vulnerability allows an attacker who can control template content to execute arbitrary code on the machine running vault-cli. Additionally, once an attacker gains RCE access, they could potentially abuse the vault-cli token to read, write, or delete other data from the vault. This particularly impacts environments where the vault content cannot be completely trusted or where an attacker might manipulate secret values read from the vault (GitHub Advisory).
The vulnerability was patched in version 3.0.0 by completely removing the code related to interpreting vault templated secrets. For users unable to upgrade, several workarounds are available: using the environment variable VAULT_CLI_RENDER=false, adding the --no-render flag when executing commands, or setting render: false in the vault-cli configuration yaml file. For those using the Python library, the vulnerability can be mitigated by using vault_cli.get_client(render=False) when creating a client (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."