SQL Injection in Typeorm
CVE-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 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
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.214 (97.5th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 98th percentile — 97.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.203 · newest: 0.214 · change: +0.011
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/typeorm/typeorm/compare/0.2.45...0.3.0 (Third Party Advisory, Release Notes)
- seclists.org/fulldisclosure/2022/Jun/51 (Exploit, Mailing List, Third Party Advisory)
- seclists.org/fulldisclosure/2022/Aug/7 (mailing-list, Mailing List, Third Party Advisory)
- packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html (Exploit, VDB Entry, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-33171?
- CVE-2022-33171 is a critical-severity vulnerability in Typeorm, classified under SQL Injection. CVSS score: 9.8/10. Published 2022-07-04.
- How severe is CVE-2022-33171?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2022-33171 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.