SQL Injection in TypeORM Affected by User-Controlled Input
CVE-2022-33171
Key Information:
Badges
What is CVE-2022-33171?
The findOne function in TypeORM, prior to version 0.3.0, presents a security vulnerability that can lead to SQL injection attacks. This occurs when the function receives a user-controlled parsed JSON object. If crafted FindOneOptions are supplied in place of a simple id string, it may allow attackers to execute unauthorized SQL queries. Although the vendor maintains that the responsibility for input validation lies with the user's application, it is crucial for developers to recognize and implement proper security measures to mitigate these risks.
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
EPSS Score
20% chance of being exploited in the next 30 days.
CVSS V3.1
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
