# CVE-2026-40086: Rembg has a Path Traversal via Custom Model Loading

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-10T16:16:28.850Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-3wqj-33cg-xc48, PYSEC-2026-2274
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- danielgatis rembg: < 2.0.75; before 2.0.75
- rembg (PyPI): before 2.0.75

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/danielgatis/rembg/security/advisories/GHSA-3wqj-33cg-xc48> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://github.com/danielgatis/rembg/commit/7c76d3cdc5757ffbda6a76664b24cfbecdb80273> (fix, patch, web)
- <https://github.com/danielgatis/rembg/releases/tag/v2.0.75> (advisory, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40086> (advisory)
- <https://github.com/danielgatis/rembg> (package)

## Sources

- CVE List: [CVE-2026-40086](https://www.cve.org/CVERecord?id=CVE-2026-40086), CVE Terms of Use, modified 2026-04-10
- GitHub Advisory Database: [GHSA-3wqj-33cg-xc48](https://github.com/advisories/GHSA-3wqj-33cg-xc48), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-40086](https://nvd.nist.gov/vuln/detail/CVE-2026-40086), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2274](https://osv.dev/vulnerability/PYSEC-2026-2274), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40086 · Whole record: https://cve.day/CVE-2026-40086.json · Rebuilt by cve.day 2026-11-25T22:59:18.525Z
