{"id":"CVE-2022-3971","published":"2022-11-13T00:00:00Z","modified":"2025-04-15T13:15:03Z","title":"matrix-appservice-irc PgDataStore.ts sql injection","vendor":"unspecified","product":"matrix-appservice-irc","tier":"tail","description":{"text":"A vulnerability was found in matrix-appservice-irc up to 0.35.1. It has been declared as critical. This vulnerability affects unknown code of the file src/datastore/postgres/PgDataStore.ts. The manipulation of the argument roomIds leads to sql injection. Upgrading to version 0.36.0 is able to address this issue. The name of the patch is 179313a37f06b298150edba3e2b0e5a73c1415e7. It is recommended to upgrade the affected component. VDB-213550 is the identifier assigned to this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00688,"percentile":0.53626,"provenance":"source"},"cwes":[{"id":"CWE-707","name":"Improper Neutralization"}],"references":[{"url":"https://github.com/matrix-org/matrix-appservice-irc/pull/1619","tags":[]},{"url":"https://github.com/matrix-org/matrix-appservice-irc/releases/tag/0.36.0","tags":[]},{"url":"https://github.com/matrix-org/matrix-appservice-irc/commit/179313a37f06b298150edba3e2b0e5a73c1415e7","tags":[]},{"url":"https://vuldb.com/?id.213550","tags":[]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":10.73},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"unspecified","affectedVersions":[{"vendor":"unspecified","product":"matrix-appservice-irc","versions":["0.35.0","0.35.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-14T17:05:25.816897Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"matrix-appservice-irc","vulnerableRanges":["<0.36.0"],"patched":["0.36.0"],"from":["GHSA-ffwf-47x2-jpr8"],"provenance":"source"}],"summary":{"text":"The matrix-appservice-irc product contains a SQL injection flaw in the PostgreSQL data store component, specifically in src/datastore/postgres/PgDataStore.ts, where the roomIds argument is not properly neutralised. An attacker who can reach the service over an adjacent network with low privileges, and who has an additional attack-complexity hurdle to overcome, can inject SQL through that argument, with the potential to affect confidentiality, integrity and availability to a limited degree.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:48Z"},"euvd":{"id":"EUVD-2022-7327","exploited":false,"provenance":"source"}}