CVE-2022-21667 Denial of Service in soketi

High 7.5 Published Updated

An unhandled case when reading POST requests with empty bodies causes the soketi WebSockets server to crash, allowing unauthenticated attackers to cause denial of service.

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

What is CVE-2022-21667?

CVE-2022-21667 is a high-severity denial of service vulnerability in soketi, published on 7 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

soketi is an open-source WebSockets server. There is an unhandled case when reading POST requests which results in the server crashing if it could not read the body of a request. In the event that a POST request is sent to any endpoint of the server with an empty body, even unauthenticated with the Pusher Protocol, it will crash the server. All users that run the server are affected by this vulnerability and it's highly recommended to upgrade to the latest patch. There are no workarounds for this issue.

Weakness: CWE-755

Which versions are affected by CVE-2022-21667?

2 open source packages ship an affected version, including @soketi/soketi. It affects 1 product.

PackageAffectedFixed in
@soketi/soketi npmAll versions0.24.1
@soketi/soketi npmAll versions0.24.1

Products include Soketi Project Soketi.

How do I fix CVE-2022-21667?

Upgrade @soketi/soketi to 0.24.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-21667 being exploited?

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

Sources

Also known as GHSA-86ch-6w7v-v6xf.

Is CVE-2022-21667 in your software?

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

Check your SBOMs for free