p PatchFirst

CVE-2025-3262

CVE-2025-3262 · Regular Expression Denial of Service (ReDoS) in huggingface/transformers

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository, specifically in version 4.49.0. The vulnerability is due to inefficient regular expression complexity in the `SETTING_RE` variable within the `transformers/commands/chat.py` file. The regex contains repetition groups and non-optimized quantifiers, leading to exponential backtracking when processing 'almost matching' payloads. This can degrade application performance and potentially result in a denial-of-service (DoS) when handling specially crafted input strings. The issue is fixed in version 4.51.0.

CVSS 5.3 · Moyenne · EPSS 0,5% · Correctif disponible

Publication
Mise à jour

Pile logicielle: python

Produits et versions concernés

  • huggingface/transformers

    Versions du logiciel
    • ≥ unspecified, < 4.51.0: Concernée (custom)

    Mettez à jour vers 4.51.0

  • transformers PyPI

    Versions du logiciel
    • 4.49.0
    • 4.50.0
    • 4.50.1
    • 4.50.2
    • 4.50.3
    Plages de versions concernées
    • ECOSYSTEM: ≥ 4.49.0, < 4.51.0

    Mettez à jour vers 4.51.0

Sources originales

Vérifiez votre serveur →