脆弱性の一覧へ戻る
編集部の見出し:rembg(Python の背景除去ライブラリ、API 経由で悪意あるモデルを置かれ任意ファイルを読まれる)
NVD の情報
Rembg is a tool to remove images background. Prior to 2.0.82, the public /api/remove endpoint passes attacker-controlled extras.sam_model through rembg/commands/s_command.py to rembg/sessions/sam.py, where it is interpolated into SAM filenames and GitHub download URLs passed to pooch.retrieve() without a pinned hash. An unauthenticated attacker can supply a sam_model value combining path traversal with URL fragment syntax to exploit the HTTP request discarding the fragment while the local POSIX path retains it. The first request primes the attacker-selected path tree, and an identical repeated request downloads malicious ONNX encoder and decoder files beside a readable target file. The graphs can load the target through ONNX external data and encode its bytes into the returned PNG mask, disclosing complete files accessible to the rembg process and allowing arbitrary ONNX computation. This issue is fixed in version 2.0.82.
- 公開日
- 2026-10-26
- 最終更新(NVD)
- 2026-10-27
- NVD の状態
- Deferred
- 脆弱性の種類
- CWE-22
深刻度(CVSS)
- 8.6 HighCVSS 3.1/副/評価:security-advisories@github.com
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
悪用の状況
CISA KEV には掲載されていません(掲載されていないことは、悪用されていないことの証明ではありません)。
EPSS:今後30日に悪用される推定確率 0.39%(全体の上位 66.5%、評価日 2026-10-30)
解消方法
- rembg のバージョンアップ2.0.82 以降根拠:公告(編集部の転記)
「NVD の条件から推定」は、NVD が影響ありとする版の上限から読み取ったもので、修正版とは限りません。「解消方法の情報なし」は、修正が無いという意味ではありません。必ずベンダーの公告で確認してください。
編集部の記載(レポート掲載時)
レポートの編集部がベンダー公告などから転記した内容です。検証済みの値ではないため、必ず出典で確認してください。
2026-10-28 のレポートrembg(Python の背景除去ライブラリ、API 経由で悪意あるモデルを置かれ任意ファイルを読まれる)
公告に記載の修正版
- rembg 2.0.82公告
参照(NVD)
NVD から取得:2026-10-30T17:45:21.384Z/EPSS 評価日:2026-10-30
This product uses the NVD API but is not endorsed or certified by the NVD.
悪用の確認情報は CISA Known Exploited Vulnerabilities Catalog(NVD 経由で取得)によります。EPSS は FIRST(www.first.org/epss)によります。