Security mailing lists by PureSourceCode

CVE-2025-1194

MEDIUM 6.5CVSS 3.1

Transformers Regular Expression Denial of Service (ReDoS) vulnerability

A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenization_gpt_neox_japanese.py of the GPT-NeoX-Japanese model. The vulnerability occurs in the SubWordJapaneseTokenizer class, where regular expressions process specially crafted inputs. The issue stems from a regex exhibiting exponential complexity under certain conditions, leading to excessive backtracking. This can result in high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.48.1 (latest).

Published
29 Apr 2025
Last modified
13 Aug 2026
Assigned by
security@huntr.dev
NVD status
Analyzed
Weakness
CWE-1333
Also known as
GHSA-fpwr-67px-3qhxPYSEC-2026-1984
Sources
NVDJSONOSV GHSA-fpwr-67px-3qhxJSONOSV PYSEC-2026-1984JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 4.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
OSV PyPA CVSS 3.1 MEDIUM 4.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
NVD security@huntr.dev (Secondary) CVSS 3.0 MEDIUM 4.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD huggingface transformers
cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*
< 4.50.0 4.50.0
OSV PyPI transformers < 4.50.0 4.50.0

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 29 Apr 2025)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Apr 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.