Check out the latest research from IONIX: NEW! State of the WAF Report

New CVE Detected

CVE-2026-115924 – Unauthenticated SAM Model Injection / Arbitrary File Disclosure – rembg prior to 2

Be the first to know when new zero-days emerge:

Summary

CVE-2026-115924 is an unauthenticated SAM model injection vulnerability (path traversal, CWE-22) in rembg, the open-source background removal tool and HTTP server by danielgatis. A remote attacker can abuse the /api/remove endpoint to place a malicious ONNX model on the server and disclose local files readable by the rembg process. The vulnerability is rated High (CVSS 8.6).

Technical details

  • Root cause: The /api/remove endpoint accepts an attacker-controlled extras.sam_model parameter without validation. The value is used to build both a local file path and a GitHub download URL.
  • Trigger conditions: The attacker supplies a sam_model value that combines path traversal with URL fragment syntax. According to the GitHub advisory, the first request creates the crafted path and fails (HTTP 500). A second identical request places the attacker-supplied ONNX model in the traversed location, next to the target file.
  • Attack vector: Network. No authentication or user interaction is required.
  • Impact: The malicious ONNX model uses external tensors to read local files and encode their contents into the PNG mask output. The advisory’s proof of concept extracted the full contents of /etc/passwd. Confidentiality impact is high, with low integrity and availability impact.

Affected software

  • rembg (danielgatis/rembg) versions prior to 2.0.82, per the CVE record.
  • The GitHub advisory names version 2.0.81 as the affected version.

Severity

  • CVSS v3.1 base score: 8.6 (High)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

Mitigation and recommended actions

  • Immediate: Upgrade rembg to version 2.0.82 or later, which the CVE record lists as the fixed version. The advisory text we retrieved stated no patch was available at its publication, so confirm the fix in the vendor’s commit and release before relying on it.
  • Workarounds, per the advisory:
    • Allow only fixed SAM identifiers, mapped server-side to fixed filenames, URLs and pinned hashes.
    • Enforce strict cache directory containment before creating directories.
    • Run the rembg server container as non-root with a read-only filesystem to limit exposure.
  • Network mitigations: Do not expose the rembg HTTP server to untrusted networks without authentication in front of it.

References

Get a free Attack Surface scan to see if you’re exposed.

Get a free Attack Surface scan to see if you’re exposed.

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge