SQL Injection in TypeORM Affected by User-Controlled Input
CVE-2022-33171

9.8CRITICAL

Key Information:

Vendor

Typeorm

Status
Vendor
CVE Published:
4 July 2022

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC๐ŸŸฃ EPSS 20%

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

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

.