CVE-2022-39203 Parsing issue in matrix-org/node-irc leading to room takeovers

High 8.8 Published Updated

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.

PackageAffectedFixed in
matrix-appservice-irc npmAll versions0.35.0
matrix-appservice-irc npmAll versions0.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.

Sources

Also known as GHSA-xvqg-mv25-rwvw.

Is CVE-2022-39203 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free