IPBUF安全漏洞报告
English
CVE-2026-32973 CVSS 9.8 严重

CVE-2026-32973 OpenClaw执行允许列表绕过漏洞

披露日期: 2026-03-29

漏洞信息

漏洞编号
CVE-2026-32973
漏洞类型
执行允许列表绕过
CVSS评分
9.8 严重
攻击向量
网络 (AV:N)
认证要求
无需认证 (PR:N)
用户交互
无需交互 (UI:N)
影响产品
OpenClaw

相关标签

RCEOpenClawBypassPath TraversalCVE-2026-32973

漏洞概述

OpenClaw 2026.3.11之前版本存在严重的执行允许列表绕过漏洞。由于`matchesExecAllowlistPattern`函数在路径规范化时仅使用小写转换,且glob匹配逻辑存在缺陷,导致在POSIX路径上发生过度匹配。攻击者可利用`?`通配符跨越路径分隔符进行匹配,从而绕过安全限制,执行非预期的命令或路径,导致系统被完全控制。

技术细节

该漏洞的核心在于OpenClaw在验证执行路径时使用了不严谨的规范化策略。函数`matchesExecAllowlistPattern`首先将输入模式和目标路径转换为小写,这在POSIX系统中可能导致意外的匹配。更关键的是,glob匹配的实现允许`?`通配符(匹配任意单个字符)跨越路径分隔符(如`/`)。正常情况下,路径通配符不应跨越目录边界。攻击者可以构造特殊的路径字符串,使得原本被允许列表拦截的恶意路径被错误地判定为合法,从而在服务器上下文中执行任意系统命令。

攻击链分析

STEP 1
侦察
识别目标运行OpenClaw且版本低于2026.3.11。
STEP 2
分析
分析目标配置的执行允许列表模式,确定潜在的绕过点。
STEP 3
构造Payload
利用POSIX路径特性,构造包含`?`通配符的恶意路径,使其能够匹配允许列表中的模式但指向非预期的命令。
STEP 4
执行攻击
发送包含恶意路径的请求,由于`matchesExecAllowlistPattern`的缺陷,请求绕过验证。
STEP 5
获取权限
服务器执行攻击者指定的命令,攻击者获得服务器控制权。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
# PoC Concept for CVE-2026-32973 # This demonstrates the bypass logic using the '?' wildcard def vulnerable_check(pattern, path): # Simulating the flawed normalization (lowercasing) norm_pattern = pattern.lower() norm_path = path.lower() # Simulating the flawed glob match where '?' matches '/' # This is a simplified representation of the vulnerability import re regex = re.escape(norm_pattern).replace(r'\*', '.*').replace(r'\?', '.') # The vulnerability allows '.' to match '/' effectively if re.fullmatch(regex, norm_path): return True return False # Scenario: Allowlist is "/usr/bin/date" allowlist = "/usr/bin/date" # Attack payload: Using '?' to match '/' # If the system treats '?' as matching '/', this might bypass strict checks # depending on the exact pattern logic. # Example: trying to execute "/bin/sh" if the allowlist logic is too permissive # or if there is a related path. # This is a conceptual demonstration based on the description of # 'overmatches on POSIX paths' and 'wildcard matching across path segments'. print("Vulnerability confirmed if logic allows '?' to match path separators.")

影响范围

OpenClaw < 2026.3.11

防御指南

临时缓解措施
如果无法立即升级,建议将OpenClaw服务部署在隔离的网络环境中,并实施严格的入站/出站流量监控。检查系统日志中是否存在异常的通配符匹配请求或未授权的命令执行记录。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表