CVE-2025-25302

HIGH CVSS 4.0: 8.7 EPSS 0.19%
Updated Mar 21, 2025
Danielgatis
Parameter Value
CVSS 8.7 (HIGH)
Affected Versions before 2.0.57
Type CWE-346 (Origin Validation Error)
Vendor Danielgatis
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Danielgatis Rembg
cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:*
— <= 2.0.57