{"id":"CVE-2022-33171","state":"PUBLISHED","title":"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, su","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","publishedAt":"2022-07-04T15:51:49.000Z","updatedAt":"2024-08-03T08:01:20.214Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0","https://seclists.org/fulldisclosure/2022/Jun/51","http://seclists.org/fulldisclosure/2022/Aug/7","http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:50:12.412Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/33xxx/CVE-2022-33171.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-33171","state":"PUBLISHED","datePublished":"2022-07-04T15:51:49.000Z","dateUpdated":"2024-08-03T08:01:20.214Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2022-06-13T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0","tags":["x_refsource_MISC"]},{"url":"https://seclists.org/fulldisclosure/2022/Jun/51","tags":["x_refsource_MISC"]},{"url":"http://seclists.org/fulldisclosure/2022/Aug/7","name":"20220815 Re: typeorm CVE-2022-33171","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2022-08-16T17:06:17.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"tags":["disputed"],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2022-33171","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"** DISPUTED ** 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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0","refsource":"MISC","url":"https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0"},{"name":"https://seclists.org/fulldisclosure/2022/Jun/51","refsource":"MISC","url":"https://seclists.org/fulldisclosure/2022/Jun/51"},{"name":"20220815 Re: typeorm CVE-2022-33171","refsource":"FULLDISC","url":"http://seclists.org/fulldisclosure/2022/Aug/7"},{"name":"http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html"}]}}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-10T18:07:13.061321Z","id":"CVE-2022-33171","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-10T18:08:18.036Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://seclists.org/fulldisclosure/2022/Jun/51","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2022/Aug/7","name":"20220815 Re: typeorm CVE-2022-33171","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"]},{"url":"http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T08:01:20.214Z"}}]}}}