NLTK 3.10.3 之前的版本在 tgrep 模块中存在一个正则表达式拒绝服务(ReDoS)漏洞。_tgrep_node_action 函数会编译嵌入在 /regex/ 模式节点中的用户提供的正则表达式,并通过 re.search 在树节点标签上执行这些表达式,过程中未进行任何验证或设置超时限制。攻击者若控制 tgrep 模式(例如通过暴露给外部输入的 tgrep_positions() 或 tgrep_compile()),可提供能够触发灾难性回溯的正则表达式模式,导致 CPU 被无限期占满,从而阻塞 Pyt
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet