id: PYSEC-2026-2274 published: "2026-04-10T17:17:12.663Z" modified: "2026-07-13T05:51:17.591331Z" aliases: - CVE-2026-40086 - GHSA-3wqj-33cg-xc48 details: 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. affected: - package: name: rembg ecosystem: PyPI purl: pkg:pypi/rembg ranges: - type: ECOSYSTEM events: - introduced: "0" - fixed: 2.0.75 versions: - 2.0.28 - 2.0.29 - 2.0.30 - 2.0.31 - 2.0.32 - 2.0.33 - 2.0.34 - 2.0.35 - 2.0.36 - 2.0.37 - 2.0.38 - 2.0.39 - 2.0.40 - 2.0.41 - 2.0.43 - 2.0.44 - 2.0.45 - 2.0.46 - 2.0.47 - 2.0.48 - 2.0.49 - 2.0.50 - 2.0.51 - 2.0.52 - 2.0.53 - 2.0.54 - 2.0.55 - 2.0.56 - 2.0.57 - 2.0.58 - 2.0.59 - 2.0.60 - 2.0.61 - 2.0.62 - 2.0.63 - 2.0.64 - 2.0.65 - 2.0.66 - 2.0.67 - 2.0.68 - 2.0.69 - 2.0.70 - 2.0.71 - 2.0.72 - 2.0.73 - 2.0.74 ecosystem_specific: {} references: - type: ADVISORY url: https://github.com/danielgatis/rembg/releases/tag/v2.0.75 - type: FIX url: https://github.com/danielgatis/rembg/commit/7c76d3cdc5757ffbda6a76664b24cfbecdb80273 - type: EVIDENCE url: https://github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48 severity: - type: CVSS_V3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N