{"id":"CVE-2026-40086","published":"2026-04-10T16:16:28Z","modified":"2026-04-10T18:29:27Z","title":"Rembg has a Path Traversal via Custom Model Loading","vendor":"danielgatis","product":"rembg","tier":"tail","description":{"text":"Rembg is a tool to remove images background. Prior to 2.0.75, a path traversal vulnerability in the rembg HTTP server allows unauthenticated remote attackers to read arbitrary files from the server's filesystem. By sending a crafted request with a malicious model_path parameter, an attacker can force the server to attempt loading any file as an ONNX model, revealing file existence, permissions, and potentially file contents through error messages. This vulnerability is fixed in 2.0.75.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00603,"percentile":0.4978,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/danielgatis/rembg/commit/7c76d3cdc5757ffbda6a76664b24cfbecdb80273","tags":["x_refsource_MISC"]},{"url":"https://github.com/danielgatis/rembg/releases/tag/v2.0.75","tags":["x_refsource_MISC"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":9.96},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"danielgatis","affectedVersions":[{"vendor":"danielgatis","product":"rembg","versions":["< 2.0.75"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-10T18:29:11.164475Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"rembg","vulnerableRanges":["<2.0.75"],"patched":["2.0.75"],"from":["GHSA-3wqj-33cg-xc48","PYSEC-2026-2274"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the rembg HTTP server, a background-removal tool from danielgatis, lets the server accept a user-supplied model_path parameter that is not restricted to an allowed directory. An unauthenticated remote attacker who can reach the HTTP server can send a crafted request to make it attempt to load any file on the filesystem as an ONNX model, with no user interaction or special configuration required; file existence, permissions, and possibly contents may be revealed through error messages.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:06Z"},"euvd":{"id":"EUVD-2026-21492","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-25301","published":"2025-03-03","fixed":"2.0.58","kev":false},{"cve":"CVE-2025-25302","published":"2025-03-03","fixed":"2.0.58","kev":false,"link":{"from":"CVE-2025-25302","to":"CVE-2026-40086","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:rembg","fromFixed":"2.0.58","toFixed":"2.0.75","daysApart":403}]}},{"cve":"CVE-2026-40086","published":"2026-04-10","fixed":"2.0.75","kev":false},{"cve":"CVE-2026-115924","published":"2026-10-26","fixed":"2.0.82","kev":false,"link":{"from":"CVE-2026-40086","to":"CVE-2026-115924","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:rembg","fromFixed":"2.0.75","toFixed":"2.0.82","daysApart":199},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same product + CWE + description similarity"}]}}],"package":"PyPI:rembg"}}