CVE-2022-33171
published 2022-07-04CVE-2022-33171: 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…
PriorityP261critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
20.30%
97.2th percentile
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
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| typeorm | typeorm | < 0.3.0 | 0.3.0 |
| typeorm | typeorm | >= 0 < 0.3.0 | 0.3.0 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
SQL injection in typeORM
osv·2022-07-05
CVE-2022-33171 [CRITICAL] SQL injection in typeORM
SQL injection in typeORM
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.
GHSA
SQL injection in typeORM
ghsa·2022-07-05
CVE-2022-33171 [CRITICAL] CWE-89 SQL injection in typeORM
SQL injection in typeORM
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.htmlhttp://seclists.org/fulldisclosure/2022/Aug/7https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0https://seclists.org/fulldisclosure/2022/Jun/51http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.htmlhttp://seclists.org/fulldisclosure/2022/Aug/7https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0https://seclists.org/fulldisclosure/2022/Jun/51
2022-07-04
Published