languagemodelsに遠隔からコードを実行される脆弱性、1.0.1で修正
Summary
languagemodels 1.0.0に、悪意あるHugging Faceモデルのchat_templateを読み込むと遠隔からコードを実行される脆弱性が見つかりました。影響を受けるのは1.0.0以上1.0.1未満で、修正版は1.0.1です。該当するバージョンを使っている場合は、1.0.1へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
languagemodels 1.0.0に、悪意あるHugging Faceモデルのchat_templateを読み込むと遠隔からコードを実行される脆弱性が見つかりました。影響を受けるのは1.0.0以上1.0.1未満で、修正版は1.0.1です。該当するバージョンを使っている場合は、1.0.1へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| jncratonlanguagemodels |
≥ 1.0.0, < 1.0.1→ 1.0.1 |
1.0.1 |
Original description The description as published by the source.
Languagemodels 1.0.0 contains a template injection vulnerability in Config.use_hf_model that allows remote attackers to execute code by supplying a malicious Hugging Face model chat_template. Attackers who control a model repository can craft a chat_template in tokenizer_config.json that reaches the os module through the unsandboxed jinja2 environment, running commands with the victim process privileges.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package pypi.org
- package github.com
- patch github.com
- patch github.com
- report github.com
- web github.com
- web pypi.org
- web github.com