目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2021-43837— vault-cli 代码注入漏洞

一分钟漏洞结论

影响对象
peopledoc vault-cli
利用判断
利用概率较高,应尽快评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

vault-cli是一个 Python 3.6+ 工具,提供简单的交互来操作来自Hashicorp Vault 的秘密。 vault-cli 3.0.0之前版本存在注入漏洞,攻击者可利用该漏洞远程执行代码。

CVSS 8.4 · High EPSS 5.00% · P92
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2021-43837 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Template injection in vault-cli
来源: CVE Program / CVE List V5
Vulnerability Description
vault-cli is a configurable command-line interface tool (and python library) to interact with Hashicorp Vault. In versions before 3.0.0 vault-cli features the ability for rendering templated values. When a secret starts with the prefix `!template!`, vault-cli interprets the rest of the contents of the secret as a Jinja2 template. Jinja2 is a powerful templating engine and is not designed to safely render arbitrary templates. An attacker controlling a jinja2 template rendered on a machine can trigger arbitrary code, making this a Remote Code Execution (RCE) risk. If the content of the vault can be completely trusted, then this is not a problem. Otherwise, if your threat model includes cases where an attacker can manipulate a secret value read from the vault using vault-cli, then this vulnerability may impact you. In 3.0.0, the code related to interpreting vault templated secrets has been removed entirely. Users are advised to upgrade as soon as possible. For users unable to upgrade a workaround does exist. Using the environment variable `VAULT_CLI_RENDER=false` or the flag `--no-render` (placed between `vault-cli` and the subcommand, e.g. `vault-cli --no-render get-all`) or adding `render: false` to the vault-cli configuration yaml file disables rendering and removes the vulnerability. Using the python library, you can use: `vault_cli.get_client(render=False)` when creating your client to get a client that will not render templated secrets and thus operates securely.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
输出中的特殊元素转义处理不恰当(注入)
来源: CVE Program / CVE List V5
Vulnerability Title
vault-cli 代码注入漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
vault-cli是一个 Python 3.6+ 工具,提供简单的交互来操作来自Hashicorp Vault 的秘密。 vault-cli 3.0.0之前版本存在注入漏洞,攻击者可利用该漏洞远程执行代码。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
peopledoc vault-cli >= 0.7.0,< 3.0.0 -

二、漏洞 CVE-2021-43837 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2021-43837 的情报信息

登录查看更多情报信息。

CVE-2021-43837 补丁与修复 (1)

CVE-2021-43837 厂商安全公告 (1)

CVE-2021-43837 其他参考 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2021-43837

暂无评论


发表评论