Skip to content
High 8.6

Rembgに認証不要で任意のファイルを読み取られる脆弱性

CVE-2026-115924 First seen on SecPulse

Summary

Rembgの2.0.82より前のバージョンには、認証なしで接続できる公開APIの入力処理に脆弱性があり、サーバー上の任意のファイルの内容を読み取られるおそれがあります。修正版の2.0.82で対処されています。速やかに2.0.82以降に更新してください。

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.

Rembgの2.0.82より前のバージョンには、認証なしで接続できる公開APIの入力処理に脆弱性があり、サーバー上の任意のファイルの内容を読み取られるおそれがあります。修正版の2.0.82で対処されています。速やかに2.0.82以降に更新してください。

Affected packages

PackageAffected → Fixed
danielgatisrembg —
piprembg
< 2.0.82→ 2.0.82
PyPIrembg
< 2.0.82→ 2.0.82
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details