Vulnerability · CVE-2025-2099
A vulnerability in the function of the module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS) attack.
Published May 19, 2025 · catalog updated May 19, 2025 · A vulnerability in the
Check this week
CVE-2025-2099 is not in CISA KEV. FIRST estimates a 61.00% chance of exploitation in the next 30 days. Check whether you run A vulnerability in the.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (A vulnerability in the).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Medium5.3
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 61.00%
- Remediation
- Version ranges on file
- Affected products
- vendor huggingface huggingface/transformers unspecified <4.50.0
A vulnerability in the function of the module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS) attack. The regular expression used to process code blocks in docstrings contains nested quantifiers, leading to exponential backtracking when processing input with a large number of newline characters. An attacker can exploit this by providing a specially crafted payload, causing high CPU usage and potential application downtime, effectively resulting in a Denial of Service (DoS) scenario.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- vendor huggingface huggingface/transformers unspecified <4.50.0unspecified <4.50.0
How to fix CVE-2025-2099
Recommended remediation
Affected version ranges suggest a fixed boundary. Verify against the vendor advisory for your release.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2025-2099 is not in CISA KEV. FIRST estimates a 61.00% chance of exploitation in the next 30 days. Check whether you run A vulnerability in the.
Which versions are affected?
Compare what you have installed with huggingface huggingface/transformers unspecified <4.50.0 unspecified <4.50.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
No weakness class is stored. EPSS 61.00%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
May 19, 2025 · EUVD
Detected
A vulnerability in the function of the module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS) attack. The regular expression used to process code blocks in docstrings contains nested quantifiers, leading to exponential backtracking when processing input with a large number of newline characters. An attacker can exploit this by providing a speci
May 19, 2025 · EUVD
Updated
A vulnerability in the function of the module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS) attack. The regular expression used to process code blocks in docstrings contains nested quantifiers, leading to exponential backtracking when processing input with a large number of newline characters. An attacker can exploit this by providing a speci
Sources
- CVE.orgVulnerability recordCVE-2025-2099
Official CVE identifier
cve.org - EUVDVulnerability recordEUVD-2025-15691
A vulnerability in the function of the module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS) attack. The regular expression used to process code blocks in docstrings contains nested quantifiers, leading to exponential backtra
euvd.enisa.europa.eu
References
Freshness
Last verified in this catalog May 19, 2025. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.