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

High 8.6 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-115924?

CVE-2026-115924 is a high-severity vulnerability in danielgatis rembg, published on 26 Oct 2026.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2026-115924?

2 open source packages ship an affected version, including rembg.

PackageAffectedFixed in
rembg PyPIAll versions2.0.82
rembg PyPIAll versions2.0.82

How do I fix CVE-2026-115924?

Upgrade rembg to 2.0.82 or later.

Is CVE-2026-115924 being exploited?

There is no known exploitation of CVE-2026-115924 in the wild and no public exploit code.

Sources

Also known as GHSA-qr6x-7v33-6qmg.

Is CVE-2026-115924 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free