Advisory record · GHSA-3wqj-33cg-xc48

Rembg has a Path Traversal via Custom Model Loading

CVSS 5.3 MediumEPSS 0.0060 · 49th percentile

Published by the GitHub Advisory Database at 10 Apr 2026, 20:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
rembgPyPI<2.0.752.0.75
Identifiers
GHSA-3wqj-33cg-xc48 · CVE-2026-40086 · PYSEC-2026-2274
Weakness (CWE)
CWE-22 · CWE-73
Published
10 Apr 2026
Updated
13 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The rembg package, versions before 2.0.75, has a path traversal flaw in its HTTP server mode, where the custom model path supplied in the request is not validated. An unauthenticated remote attacker can make the server attempt to load arbitrary files as ONNX models, which can reveal whether files exist and, through error messages, some of their contents. Upgrade rembg to version 2.0.75 or later.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.3 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0060, the 49th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:04 UTC First seen by agentprime
  2. 31 Oct 2026, 15:04 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.