Junglewise Threat Intelligence

CVE-2024-36128: Directus denial of service in random string utility

CVE-2024-36128 · Severity: low · CVSS 3.1 · Published 2024-06-04

Technologies: directus (npm). Vendors: Directus, npm.

Executive brief

Directus is a popular content management and data infrastructure platform. An unauthenticated attacker can trigger a denial of service by sending a malformed request to the random string generation endpoint, causing all subsequent session refreshes and authentication operations to fail. This leaves all users unable to refresh their sessions and renders the application unavailable.

Technical details

The vulnerability is a denial of service caused by improper input validation in the random string utility. When a non-numeric value is provided to the length parameter of the random string generation endpoint (GET /utils/random/string?length=foo), it creates a memory issue that corrupts the utility's state. Once triggered, the utility returns empty strings instead of random session IDs, causing all session refresh and authentication operations to fail. The vulnerability requires network access to the random string endpoint but no authentication or user interaction. The issue is fixed in Directus version 10.11.2 and later.

Affected products

  • Directus Directus <=10.11.1

Timeline

  • 2024-06-03: disclosed
  • 2024-06-04: patched: Fixed in version 10.11.2

References

Related threats