
Catálogo de CVE
CVE-2025-2099
PYSEC-2025-40
A flaw was found in the preprocess_string() function of the transformers.testing_utils module in HuggingFace Transformers. This vulnerability allows a Regular Expression Denial of Service (ReDoS) via a specially crafted input string containing many newline characters that trigger excessive backtracking. transformers: Regular Expression Denial of Service (ReDoS) in huggingface/transformers The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
- Gravedad
- High · CVSS 7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.61% · Oct 27, 2026
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| PyPIRelease not reported | transformers | 4.49.0 | UnknownSource applicability is not established | [PYSEC-2025-40] |
| PyPIRelease not reported | transformers | 4.50.0 | UnknownSource applicability is not established | GHSA-QQ3J-4F4F-9583 |
| PyPIRelease not reported | transformers | 8cb522b4190bd556ce51be04942720650b1a3e57 | UnknownSource applicability is not established | [PYSEC-2025-40] |
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| PyPIRelease not reported | transformers | 4.49.0 | UnknownSource applicability is not established | [PYSEC-2025-40] |
| PyPIRelease not reported | transformers | 4.50.0 | UnknownSource applicability is not established | GHSA-QQ3J-4F4F-9583 |
| PyPIRelease not reported | transformers | 8cb522b4190bd556ce51be04942720650b1a3e57 | UnknownSource applicability is not established | [PYSEC-2025-40] |
Original provider fields
{
"package_releases": [],
"fixed_versions": [],
"distribution_packages": [
{
"name": "transformers",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.50.0"
}
]
}
],
"ecosystem": "PyPI",
"fixed_version": "4.50.0",
"provider_record_id": "GHSA-QQ3J-4F4F-9583",
"applicability_unknown": true
},
{
"name": "transformers",
"ranges": [
{
"repo": "https://github.com/huggingface/transformers",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "8cb522b4190bd556ce51be04942720650b1a3e57"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.49.0"
}
]
}
],
"ecosystem": "PyPI",
"provider_url": "https://osv.dev/vulnerability/PYSEC-2025-40",
"fixed_version": "4.49.0",
"provider_source": "pypi",
"provider_record_id": "PYSEC-2025-40",
"provider_updated_at": "2026-06-10T17:02:48.111891265Z",
"applicability_unknown": true
}
]
}OpenFactory catalog packages
La asociación de paquetes está en curso.
Observado:
Referencias
- [https://osv.dev/vulnerability/PYSEC-2025-40]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-2099.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2025/wid-sec-w-2025-1707.json]
[CERT-Bund public advisories] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]