CVE-2022-39202

IRC mode parameter confusion in matrix-appservice-irc

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.

Category

4.3
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.09%
Vendor Advisory matrix.org
Affected: matrix-org matrix-appservice-irc
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-39202?
CVE-2022-39202 has been scored as a medium severity vulnerability.
How to fix CVE-2022-39202?
To fix CVE-2022-39202, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-39202 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2022-39202 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-39202?
CVE-2022-39202 affects matrix-org matrix-appservice-irc.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.