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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-121577— whatstk 未转义头部分隔符导致正则回溯漏洞

一分钟漏洞结论

影响对象
lucasrodes whatstk
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

在 项目(版本 0.2.0 至 0.9.0 之前)的 函数(位于 )中存在低效的正则表达式复杂度漏洞(CWE-1333)。该漏洞允许提供聊天导出文件的攻击者,通过构造恶意输入,使解析该文件的进程陷入无限制的 CPU 消耗。 漏洞成因在于: 函数在构建头部正则表达式时,会将每个 占位符替换为对应的命名捕获组,但其余头部格式字符未进行转义处理。因此,若日期分隔符本身是正则表达式元字符,则会改变正则模式的行为而非按字面匹配。例如,当分隔符为 时,它会将前一个捕获组进行量词限定,生成类似 的模式。一旦遇到无法完成头部匹配的

CVSS 6.7 · Medium EPSS 0.13% · P3

影响版本矩阵 1

厂商产品 版本范围状态
lucasrodes whatstk 0.2.0< 0.9.0 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-121577 基础信息

漏洞信息

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

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

Vulnerability Title
Unescaped header separators in whatstk build a regular expression that backtracks exponentially
来源: CVE Program / CVE List V5
Vulnerability Description
Inefficient Regular Expression Complexity (CWE-1333) in generate_regex() (whatstk/whatsapp/parser.py) in whatstk from 0.2.0 before 0.9.0 allows a party that supplies a chat export to consume the CPU of the process that parses it for an unbounded time, because the function builds the header regular expression by replacing each %x code with its named capture group and leaves every other character of the header format in the pattern unescaped. A header whose date separator is a regular expression metacharacter therefore alters the pattern instead of matching itself: a separator of + quantifies the preceding capture group, giving (?P<day>\d{1,2})+(?P<month>\d{1,2})+(?P<year>\d{2,4}), and a run of digits that cannot complete the header then makes the engine try every way of partitioning that run. Header auto detection is enabled by default and derives the format from the text of the file, so the separator is taken from the export itself and no header format has to be passed by the caller. Separators of (, ) and \ instead raise re.PatternError, separators of *, | and ? raise TypeError, and separators of ^ and $ raise KeyError, none of which the library catches. This results in the parse of a file of a few hundred bytes consuming CPU without completing, or in an uncaught exception in the calling program.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
CWE-1333
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
lucasrodes whatstk 0.2.0 ~ 0.9.0 -

二、漏洞 CVE-2026-121577 的公开POC

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

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-121577 的情报信息

请登录查看更多情报信息。

CVE-2026-121577 其他参考 (4)

IV. Related Vulnerabilities