Claude Code workspace trust dialog bypass via repository settings loading order [CVE-2026-33068, CVSS 7.7]. Settings resolved before trust dialog shown.
嗯,用户让我总结一篇关于CVE-2026-33068的文章,控制在100字以内,而且不需要特定的开头。首先,我需要理解文章的主要内容。 文章讲的是Claude Code CLI工具的一个配置加载顺序缺陷。漏洞允许恶意仓库通过修改settings.json文件中的bypassPermissions字段,在用户确认信任之前绕过权限检查。这属于CWE-807问题,修复版本是2.1.53,改变了加载顺序,先让用户确认再加载设置。 我需要把这些关键点浓缩到100字以内。首先,说明漏洞是什么,影响哪个版本。然后描述机制:恶意文件如何利用加载顺序绕过确认。接着指出这是CWE-807问题,最后提到修复版本和解决方法。 要注意用词简洁,避免重复。比如,“配置加载顺序缺陷”可以简化为“配置加载顺序漏洞”。同时,确保涵盖所有重要信息:漏洞名称、影响版本、机制、 CWE编号、修复措施。 现在组织语言:Claude Code CLI工具存在配置加载顺序漏洞(CVE-2026-33068),影响2.1.53前版本。恶意仓库的settings.json文件可利用该漏洞在用户确认前绕过权限检查。此问题属于CWE-807,修复版本调整了加载顺序以先确认信任。 检查字数是否在限制内,并确保信息准确无误。 </think> Claude Code CLI工具存在配置加载顺序漏洞(CVE-2026-33068),影响2.1.53前版本。恶意仓库的`.claude/settings.json`文件可利用该漏洞在用户确认前绕过权限检查。此问题属于CWE-807,修复版本调整了加载顺序以先确认信任。 2026-3-20 17:40:56 Author: www.reddit.com(查看原文) 阅读量:2 收藏

CVE-2026-33068 is a configuration loading order defect in Anthropic's Claude Code CLI tool (versions prior to 2.1.53). A malicious 
`.claude/settings.json`
 file in a repository can bypass the workspace trust confirmation dialog by exploiting the order in which settings are resolved.

The mechanism: Claude Code supports a 
`bypassPermissions`
 field in settings files. This is a legitimate, documented feature intended for trusted workspaces. The vulnerability is that repository-level settings (
`.claude/settings.json`
) are loaded and resolved before the workspace trust dialog is presented to the user. A malicious repository can include a settings file with 
`bypassPermissions`
 entries, and those permissions are applied before the user has an opportunity to review and approve the workspace.

This is CWE-807: Reliance on Untrusted Inputs in a Security Decision. The trust decision (whether to grant elevated permissions) depends on inputs from the entity being evaluated (the repository). The security boundary between "untrusted repository" and "trusted workspace" is bridged by the settings loading order.

The fix in Claude Code 2.1.53 changes the loading order so that the trust dialog is presented before repository-level settings are resolved.

Worth noting: 
`bypassPermissions`
 is not a hidden feature or a misconfiguration. It is documented and useful for legitimate workflows. The bug is purely in the loading order.

文章来源: https://www.reddit.com/r/netsec/comments/1rz2xuw/claude_code_workspace_trust_dialog_bypass_via/
如有侵权请联系:admin#unsafe.sh