CVE-2025-25302
MEDIUM6.5EPSS 0.04%Rembg CORS misconfiguration
發布日:2025/3/11修改日:2025/4/9
描述
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.
受影響套件(2)
- PyPI/rembgfrom 0, <= 2.0.57
- PyPI/rembgfrom 0, < 2.0.58
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
參考連結(5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-25302
- ADVISORYhttps://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg
- EXPLOIThttps://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/
- PATCHhttps://github.com/danielgatis/rembg
- WEBhttps://github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/commands/s_command.py#L93