CVE-2022-33171
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.
Does this matter?
EPSS puts the probability of exploitation in the next 30 days at 20.3%, higher than 97% of all known CVEs. Patch or mitigate before the next change window.
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
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 20.30% probability · 97th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-89
- Affected
- typeorm/typeorm
- Source
- cve@mitre.org
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
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.