Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. rembg
  4. ›
  5. CVE-2026-115924

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

October 27, 2026

The public /api/remove endpoint uses attacker-controlled extras.sam_model in both SAM filenames and GitHub download URLs. Path traversal plus a URL fragment lets an unauthenticated attacker place malicious ONNX models beside a target file. The models read the file as ONNX external data and encode its bytes into the returned PNG.

This issue affects SAM’s sam_model in 2.0.81 and returns complete file contents.

Screenshot 1 — First unauthenticated request primes the path and returns HTTP 500.

References

  • github.com/advisories/GHSA-qr6x-7v33-6qmg
  • github.com/danielgatis/rembg/commit/b2758c6b39bb2b02df90a03128110339476984d3
  • github.com/danielgatis/rembg/releases/tag/v2.0.82
  • github.com/danielgatis/rembg/security/advisories/GHSA-qr6x-7v33-6qmg
  • nvd.nist.gov/vuln/detail/CVE-2026-115924

Code Behaviors & Features

Detect and mitigate CVE-2026-115924 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0.82

Fixed versions

  • 2.0.82

Solution

Upgrade to version 2.0.82 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/rembg/CVE-2026-115924.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:44 +0000.