CVE-2025-25302 Rembg CORS misconfiguration
HighCVSS 8.7
EPSS 0.19%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| danielgatis rembg | <= 2.0.57; = <= 2.0.57 | after 2.0.57 | Fixed |
| pypi rembg(PyPI) | < 2.0.58; <= 2.0.57; = 2.0.28; = 2.0.29 +27 more | 2.0.58 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi rembg(PyPI) | <= 2.0.57 | No fix listed |
| pypi rembg(PyPI) | = 2.0.28 | No fix listed |
| pypi rembg(PyPI) | = 2.0.29 | No fix listed |
| pypi rembg(PyPI) | = 2.0.30 | No fix listed |
| pypi rembg(PyPI) | = 2.0.31 | No fix listed |
| pypi rembg(PyPI) | = 2.0.32 | No fix listed |
| pypi rembg(PyPI) | = 2.0.33 | No fix listed |
| pypi rembg(PyPI) | = 2.0.34 | No fix listed |
| pypi rembg(PyPI) | = 2.0.35 | No fix listed |
| pypi rembg(PyPI) | = 2.0.36 | No fix listed |
| pypi rembg(PyPI) | = 2.0.37 | No fix listed |
| pypi rembg(PyPI) | = 2.0.38 | No fix listed |
| pypi rembg(PyPI) | = 2.0.39 | No fix listed |
| pypi rembg(PyPI) | = 2.0.40 | No fix listed |
| pypi rembg(PyPI) | = 2.0.41 | No fix listed |
| pypi rembg(PyPI) | = 2.0.43 | No fix listed |
| pypi rembg(PyPI) | = 2.0.44 | No fix listed |
| pypi rembg(PyPI) | = 2.0.45 | No fix listed |
| pypi rembg(PyPI) | = 2.0.46 | No fix listed |
| pypi rembg(PyPI) | = 2.0.47 | No fix listed |
| pypi rembg(PyPI) | = 2.0.48 | No fix listed |
| pypi rembg(PyPI) | = 2.0.49 | No fix listed |
| pypi rembg(PyPI) | = 2.0.50 | No fix listed |
| pypi rembg(PyPI) | = 2.0.51 | No fix listed |
| pypi rembg(PyPI) | = 2.0.52 | No fix listed |
Show 8 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi rembg(PyPI) | = 2.0.53 | No fix listed |
| pypi rembg(PyPI) | = 2.0.54 | No fix listed |
| pypi rembg(PyPI) | = 2.0.55 | No fix listed |
| pypi rembg(PyPI) | = 2.0.56 | No fix listed |
| pypi rembg(PyPI) | = 2.0.57 | No fix listed |
| pypi rembg(PyPI) | < 2.0.58 | 2.0.58 |
| danielgatis rembg | = <= 2.0.57 | No fix listed |
| danielgatis rembg | <= 2.0.57 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- https://github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/commands/s_command.py#L93 product
- https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/ exploit third-party-advisory vendor-advisory
- github.com vendor-advisory