MEDIUM · CVSS 6.5 Published: 2025-03-03
CVE-2025-25302 — Technical Security Advisory & CVSS Profile
Rembg is a tool to remove images background. In Rembg 2.0.57 and earlier, the CORS middleware is setup incorrectly. All origins are reflected, which allows any website to send cross site requests to the rembg server and thus query any API. Even if authentication were to be enabled, allow_credentials is set to True, which would allow any website to send authenticated cross site requests.
Technical Metadata
| Identifier | CVE-2025-25302 |
|---|---|
| Base Severity / Score | MEDIUM (6.5 / 10.0) |
| CVSS Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| Weakness Classification | CWE-346 |
| Archive Categories | MEDIUM Advisories · 2025 Index |
Operational Mitigation Guidance
Schedule vendor updates during routine patching windows and verify whether affected code paths are reachable in your deployment configuration. For architectural isolation principles, review per-process namespace isolation.
Upstream References
- https://github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/commands/s_command.py#L93
- https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/
Related Security Advisories
CVE-2025-25301 HIGH 7.5
CVE-2025-25306 CRITICAL 9.3
CVE-2025-25298 MEDIUM 5.3
CVE-2025-2533 MEDIUM 5.3
CVE-2025-2534 MEDIUM 5.3
CVE-2025-2536 MEDIUM 6.1
CVE-2025-25363 MEDIUM 6.5
CVE-2025-2541 MEDIUM 6.4