CVE-2022-33171

CRITICALCVSS 9.8/10EPSS 20.30%

Last modified

CVE-2022-33171 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 20.30% chance of exploitation in the next 30 days.

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

Metrics

CVSS 3.1
9.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
20.30%

97.1th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
TypeormTypeorm< 0.3.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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
How severe is CVE-2022-33171?
CVE-2022-33171 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 20.30% probability of exploitation in the next 30 days.
How do I fix CVE-2022-33171?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-33171?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST