CVEvulnerability
CVE-2022-33171
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2022-07-04
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
- Weaknesses
- CWE-89
Description
The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptions object. When input to the function is a user-controlled parsed JSON object, supplying a crafted FindOneOptions instead of an id string leads to SQL injection. NOTE: the vendor's position is that the user's application is responsible for input validation
Affected configurations
• typeorm typeorm (< 0.3.0)
Related
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html Exploit, Third Party Advisory, VDB Entry
- http://seclists.org/fulldisclosure/2022/Aug/7 Mailing List, Third Party Advisory
- https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0 Release Notes, Third Party Advisory
- https://seclists.org/fulldisclosure/2022/Jun/51 Exploit, Mailing List, Third Party Advisory
- http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html Exploit, Third Party Advisory, VDB Entry
- http://seclists.org/fulldisclosure/2022/Aug/7 Mailing List, Third Party Advisory
- https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0 Release Notes, Third Party Advisory
- https://seclists.org/fulldisclosure/2022/Jun/51 Exploit, Mailing List, Third Party Advisory