MEDIUM · CVSS 5.3 Published: 2025-07-07

CVE-2025-3264 — Technical Security Advisory & CVSS Profile

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.

Technical Metadata

IdentifierCVE-2025-3264
Base Severity / ScoreMEDIUM (5.3 / 10.0)
CVSS VectorCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness ClassificationCWE-1333
Archive CategoriesMEDIUM Advisories · 2025 Index

Operational Mitigation Guidance

Schedule vendor updates during routine patching windows and verify whether affected code paths are reachable in your deployment configuration. For architectural isolation principles, review per-process namespace isolation.

Upstream References

Related Security Advisories

CVE-2025-3263 MEDIUM 5.3
CVE-2025-3265 HIGH 7.3
CVE-2025-3267 MEDIUM 6.3
CVE-2025-3268 MEDIUM 5.3
CVE-2025-32693 MEDIUM 4.7
CVE-2025-32703 MEDIUM 5.5
CVE-2025-32715 MEDIUM 6.5