Medium severity · published Sep 13, 2022
CVE-2022-39202
IRC mode parameter confusion in matrix-appservice-irc
6.3
CVSS
0.9%
EPSS
No
On KEV
Description
matrix-appservice-irc is an open source Node.js IRC bridge for Matrix. The Internet Relay Chat (IRC) protocol allows you to specify multiple modes in a single mode command. Due to a bug in the underlying matrix-org/node-irc library, affected versions of matrix-appservice-irc perform parsing of such modes incorrectly, potentially resulting in the wrong user being given permissions. Mode commands can only be executed by privileged users, so this can only be abused if an operator is tricked into running the command on behalf of an attacker. The vulnerability has been patched in matrix-appservice-irc 0.35.0. As a workaround users should refrain from entering mode commands suggested by untrusted users. Avoid using multiple modes in a single command.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 59% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MA
matrix-appservice-irc · matrix-org
< 0.35.0 · source: vendor
MI
Matrix Irc Bridge · Matrix
before 0.35.0 · source: NVD
Affected product
MA
matrix-appservice-irc
matrix-org
More from matrix-appservice-irc
9.8
CVE-2023-38690
matrix-appservice-irc IRC command injection via admin commands containing newlines
8.8
CVE-2022-39203
Parsing issue in matrix-org/node-irc leading to room takeovers
5.4
CVE-2024-52505
matrix-appservice-irc allows IRC Command injection in provisioning API
4.3
CVE-2025-27146
Matrix IRC Bridge allows IRC command injection to own puppeted user
4.3
CVE-2024-39691
Malicious Matrix homeserver can leak truncated message content of messages it shouldn't have access to