GHSA-69w3-r845-3855 · 深刻度: medium · エコシステム: pip — HuggingFace Transformers allows for arbitrary code execution in the `Trainer` class
A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbitrary code execution. The `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without the `weights_only=True` parameter. This issue affects all versions of the library supporting `torch>=2.2` when used with PyTorch versions below 2.6, as the `safe_globals()` context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as `rng_state.pth`, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3.
総合評価: CVE-2026-1839 は公開エクスプロイトあり(54.2/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 0.30%、22 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
| EDB-ID | ソース | 種別 | 公開 | リンク |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.02% | 0.30% | +0.29% |
| 2 | 2026-04-07 | — | 0.02% | — |
EPSS の全履歴 (全 2 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 7.8 | 3.1 | HIGH |
|
1.8 | 5.9 | [email protected] |
| 6.5 | 3.0 | MEDIUM |
|
1.0 | 5.5 | [email protected] |
GHSA-69w3-r845-3855 · 深刻度: medium · エコシステム: pip — HuggingFace Transformers allows for arbitrary code execution in the `Trainer` class
| vendor | priority | summary | link |
|---|---|---|---|
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2026-1839 |
| ベンダー | 製品 | バージョン | 生の CPE |
|---|---|---|---|
| huggingface | transformers | < 5.0.0 | cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:* |
| huggingface | transformers | 5.0.0 | cpe:2.3:a:huggingface:transformers:5.0.0:rc0:*:*:*:*:*:* |
| huggingface | transformers | 5.0.0 | cpe:2.3:a:huggingface:transformers:5.0.0:rc1:*:*:*:*:*:* |
| huggingface | transformers | 5.0.0 | cpe:2.3:a:huggingface:transformers:5.0.0:rc2:*:*:*:*:*:* |
| URL | タグ |
|---|---|
| https://github.com/huggingface/transformers/commit/03c8082ba4594c9b8d6fe190ca9bed0e5f8ca396 | Patch |
| https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485 | Exploit Third Party Advisory |