CVE-2018-12423 Matrix Synapse Authorization Error

High 7.5 Published Updated

Unauthenticated users can hijack Matrix rooms lacking power level events, allowing unauthorized control and modification of room state.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-12423?

CVE-2018-12423 is a high-severity missing authorization vulnerability in n/a, published on 14 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Synapse before 0.31.2, unauthorised users can hijack rooms when there is no m.room.power_levels event in force.

Which versions are affected by CVE-2018-12423?

3 open source packages ship an affected version, including matrix-synapse. It affects 1 product.

PackageAffectedFixed in
matrix-synapse PyPIAll versions0.31.2
matrix-synapse PyPIAll versions0.31.2
matrix-synapse PyPIAll versions0.31.2

Products include Matrix Synapse.

How do I fix CVE-2018-12423?

Upgrade matrix-synapse to 0.31.2 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2018-12423 being exploited?

There is no known exploitation of CVE-2018-12423 in the wild and no public exploit code.

Sources

Also known as GHSA-ch5v-fhg8-7gv9, PYSEC-2026-844, UBUNTU-CVE-2018-12423.

Is CVE-2018-12423 in your software?

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

Check your SBOMs for free