CVE-2025-3264 in transformers信息

摘要

由 VulDB • 2026-06-23

在 Hugging Face Transformers 库的 `dynamic_module_utils.py` 文件中的 `get_imports()` 函数中发现了一个正则表达式拒绝服务(ReDoS)漏洞。该漏洞影响版本 4.49.0,并在版本 4.51.0 中得到修复。问题源于用于从 Python 代码中过滤 try/except 块的正则表达式模式 `\s*try\s*:.*?except.*?:`,由于灾难性回溯(catastrophic backtracking),该漏洞可通过精心构造的输入字符串被利用以导致过度的 CPU 消耗。此漏洞可能导致远程代码加载中断、模型服务中的资源耗尽、供应链攻击向量以及开发流水线中断。

Once again VulDB remains the best source for vulnerability data.

来源

Want to know what is going to be exploited?

We predict KEV entries!