Vulnerability Details : CVE-2022-3971
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.
Vulnerability category: Sql Injection
Products affected by CVE-2022-3971
- cpe:2.3:a:matrix:matrix_irc_bridge:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-3971
0.05%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 11 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-3971
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.6
|
MEDIUM | CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L |
1.2
|
3.4
|
VulDB | |
5.6
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
2.2
|
3.4
|
NIST |
CWE ids for CVE-2022-3971
-
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.Assigned by: cna@vuldb.com (Primary)
-
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.Assigned by: cna@vuldb.com (Primary)
-
The product does not ensure or incorrectly ensures that structured messages or data are well-formed and that certain security properties are met before being read from an upstream component or sent to a downstream component.Assigned by: cna@vuldb.com (Primary)
References for CVE-2022-3971
-
https://vuldb.com/?id.213550
CVE-2022-3971 | matrix-appservice-irc PgDataStore.ts sql injectionThird Party Advisory
-
https://github.com/matrix-org/matrix-appservice-irc/pull/1619
Prevent low-risk SQL injection from roomId values when entered into the config by jaller94 · Pull Request #1619 · matrix-org/matrix-appservice-irc · GitHubPatch;Third Party Advisory
-
https://github.com/matrix-org/matrix-appservice-irc/releases/tag/0.36.0
Release 0.36.0 (2022-10-25) · matrix-org/matrix-appservice-irc · GitHubRelease Notes;Third Party Advisory
-
https://github.com/matrix-org/matrix-appservice-irc/commit/179313a37f06b298150edba3e2b0e5a73c1415e7
Prevent low-risk SQL injection from roomId values when entered into t… · matrix-org/matrix-appservice-irc@179313a · GitHubPatch;Third Party Advisory
Jump to