Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-115924— Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs

Quick assessment

Affected
danielgatis rembg
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Rembg 是一个用于移除图像背景的工具。在 2.0.82 版本之前,其公开的 接口会将攻击者控制的 参数传递给 ,随后该参数在 中被直接拼接到 SAM 模型文件名及 GitHub 下载 URL 中,并传入 函数,且未使用固定的哈希值进行校验。未认证的攻击者可构造一个结合路径遍历与 URL 片段语法的 值,利用 HTTP 请求会丢弃 URL 片段而本地 POSIX 路径会保留该片段的差异,从而发起攻击。首次请求会预先创建攻击者指定的路径树,随后重复发送相同请求,即可在可读取的目标文件旁下载恶意的 ONNX 编码器和

CVSS 8.6 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-115924

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs
Source: CVE Program / CVE List V5
Vulnerability Description
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 Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
danielgatis rembg < 2.0.82 -

II. Public POCs for CVE-2026-115924

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-115924

请登录查看更多情报信息。

Other References for CVE-2026-115924 (3)

IV. Related Vulnerabilities