CVE-2025-3264
Last modified
CVE-2025-3264 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically in the `get_imports()` function within `dynamic_module_utils.py`. This vulnerability affects versions 4.49.0 and is fixed in version 4.51.0. EPSS estimates a 0.43% chance of exploitation in the next 30 days.
Description
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically in the `get_imports()` function within `dynamic_module_utils.py`. This vulnerability affects versions 4.49.0 and is fixed in version 4.51.0. The issue arises from a regular expression pattern `\s*try\s*:.*?except.*?:` used to filter out try/except blocks from Python code, which can be exploited to cause excessive CPU consumption through crafted input strings due to catastrophic backtracking. This vulnerability can lead to remote code loading disruption, resource exhaustion in model serving, supply chain attack vectors, and development pipeline disruption.
Metrics
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Huggingface | Transformers | >= 4.49.0, < 4.51.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-3264?
How severe is CVE-2025-3264?
How do I fix CVE-2025-3264?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-32634Improper Neutralization of Input During Web Page Generation …7.1
- CVE-2025-32635Insertion of Sensitive Information Into Sent Data vulnerabil…7.5
- CVE-2025-32636Improper Neutralization of Special Elements used in an SQL C…9.3
- CVE-2025-32637Improper Neutralization of Input During Web Page Generation …7.1
- CVE-2025-32638Improper Neutralization of Input During Web Page Generation …7.1
- CVE-2025-32639Improper Neutralization of Input During Web Page Generation …7.1
- CVE-2025-32640Improper Neutralization of Input During Web Page Generation …5.9
- CVE-2025-32641Cross-Site Request Forgery (CSRF) vulnerability in anantaddo…9.6
- CVE-2025-32642Cross-Site Request Forgery (CSRF) vulnerability in appsbd Vi…10
- CVE-2025-32643Improper Neutralization of Special Elements used in an SQL C…9.3
- CVE-2025-32644Cross-Site Request Forgery (CSRF) vulnerability in IP2Locati…7.1
- CVE-2025-32645Cross-Site Request Forgery (CSRF) vulnerability in Hiren Pat…7.1
Are you affected by CVE-2025-3264?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
