CVE-2023-45820 Directus crashes on invalid WebSocket message

Medium 5.9 Published Updated

An attacker can crash the Directus application by sending invalid WebSocket frames, requiring websockets to be enabled.

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

What is CVE-2023-45820?

CVE-2023-45820 is a medium-severity denial of service vulnerability in Monospace Directus, published on 19 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Directus is a real-time API and App dashboard for managing SQL database content. In affected versions any Directus installation that has websockets enabled can be crashed if the websocket server receives an invalid frame. A malicious user could leverage this bug to crash Directus. This issue has been addressed in version 10.6.2. Users are advised to upgrade. Users unable to upgrade should avoid using websockets.

Weakness: CWE-755

Which versions are affected by CVE-2023-45820?

2 open source packages ship an affected version, including directus. It affects 1 product.

PackageAffectedFixed in
directus npmFrom 10.4.010.6.2
directus npmFrom 10.4.010.6.2

Products include Monospace Directus.

How do I fix CVE-2023-45820?

Upgrade directus to 10.6.2 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-2023-45820 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-45820 exists.

All Monospace Directus vulnerabilities

Sources

Also known as GHSA-hmgw-9jrg-hf2m.

Is CVE-2023-45820 in your software?

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

Check your SBOMs for free