CVE-2022-3971: matrix-appservice-irc PgDataStore.ts sql injection
Vulnerability summary
CVE-2022-3971 is a medium (CVSS 5.6) Improper Neutralization vulnerability in matrix matrix_irc_bridge. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 54.6% of scored vulnerabilities.
Not severe (CVSS 4.6, adjacent network); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 13-11-2022PublishedVulnerability first disclosed.
- 15-04-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA4.6MediumCVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · NpmEcosystem advisory · calculated5.6MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS trend
Probability
0.70%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
Increase +0.13 pp
From 0.57% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: adjacent network, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Matrix1 product
- matrix_irc_bridge≤ 0.36.0
Npm1 product
- matrix-appservice-irc< 0.36.0
Unspecified1 product
- matrix-appservice-irc0.35.0 | 0.35.1
3 vendors · 3 products
References
6 links- github.com/matrix-org/matrix-appservice-irc/commit/179313a37f06b298150edba3e2b0e5a73c1415e7WEBPatchThird Party Advisory