CVE-2022-33171
Typeorm vulnerability
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
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Typeorm. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Typeorm runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html · Exploit
- seclists.org/fulldisclosure/2022/Aug/7 · Third Party Advisory
- github.com/typeorm/typeorm/compare/0.2.45...0.3.0 · Third Party Advisory
- seclists.org/fulldisclosure/2022/Jun/51 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2022-33171
- cve.org/CVERecord?id=CVE-2022-33171
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.