CVE-2022-39203 Parsing issue in matrix-org/node-irc leading to room takeovers
Attackers can exploit a parsing flaw in the Matrix IRC bridge to merge channels and grant themselves unauthorized permissions in existing rooms.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-39203?
CVE-2022-39203 is a high-severity vulnerability in matrix-org matrix-appservice-irc, published on 13 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
matrix-appservice-irc is an open source Node.js IRC bridge for Matrix. Attackers can specify a specific string of characters, which would confuse the bridge into combining an attacker-owned channel and an existing channel, allowing them to grant themselves permissions in the channel. The vulnerability has been patched in matrix-appservice-irc 0.35.0. As a workaround operators may disable dynamic channel joining via `dynamicChannels.enabled` to prevent users from joining new channels, which prevents any new channels being bridged outside of what is already bridged, and what is specified in the config.
Weakness: CWE-269
Which versions are affected by CVE-2022-39203?
2 open source packages ship an affected version, including matrix-appservice-irc. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
matrix-appservice-irc npm | All versions | 0.35.0 |
matrix-appservice-irc npm | All versions | 0.35.0 |
Products include Matrix Matrix Irc Bridge.
How do I fix CVE-2022-39203?
Upgrade matrix-appservice-irc to 0.35.0 or later.
Is CVE-2022-39203 being exploited?
There is no known exploitation of CVE-2022-39203 in the wild and no public exploit code.
Other vulnerabilities in matrix-org matrix-appservice-irc
- CVE-2022-29166 Improper handling of multiline messages in matrix-appservice-irc
- CVE-2023-38690 matrix-appservice-irc IRC command injection via admin commands containing newlines
- CVE-2022-3971 matrix-appservice-irc PgDataStore.ts sql injection
- CVE-2022-39202 IRC mode parameter confusion in matrix-appservice-irc
- CVE-2023-38700 matrix-appservice-irc events can be crafted to leak parts of targeted messages from other bridged rooms
Sources
Also known as GHSA-xvqg-mv25-rwvw.