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
EPSS: 0.203 (97.3th percentile) — read the EPSS interpretation.
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.
Affected products
- Typeorm
- N/a — versions n/a
Weakness classification (CWE)
Public proof-of-concept exploits
References
- cve@mitre.org (Third Party Advisory, x_refsource_MISC, Release Notes)
- cve@mitre.org (Exploit, Mailing List, Third Party Advisory, x_refsource_MISC)
- cve@mitre.org (mailing-list, x_refsource_FULLDISC, Mailing List, Third Party Advisory)
- cve@mitre.org (Exploit, VDB Entry, Third Party Advisory, x_refsource_MISC)
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.