CVE-2022-33171
Last modified
CVE-2022-33171 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 20.30% chance of exploitation in the next 30 days.
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
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Typeorm | Typeorm | < 0.3.0 |
References
- http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.htmlExploit, Third Party Advisory, VDB Entry
- http://seclists.org/fulldisclosure/2022/Aug/7Mailing List, Third Party Advisory
- https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0Release Notes, Third Party Advisory
- https://seclists.org/fulldisclosure/2022/Jun/51Exploit, Mailing List, Third Party Advisory
- http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.htmlExploit, Third Party Advisory, VDB Entry
- http://seclists.org/fulldisclosure/2022/Aug/7Mailing List, Third Party Advisory
- https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0Release Notes, Third Party Advisory
- https://seclists.org/fulldisclosure/2022/Jun/51Exploit, Mailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-33171?
How severe is CVE-2022-33171?
How do I fix CVE-2022-33171?
Are you affected by CVE-2022-33171?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
