Advisory

GHSA-632p-p495-25m5

Also known as: CVE-2024-36128

Summary

Directus is soft-locked by providing a string value to random string util

Details

Describe the Bug

Providing a non-numeric length value to the random string generation utility will create a memory issue breaking the capability to generate random strings platform wide. This creates a denial of service situation where logged in sessions can no longer be refreshed as sessions depend on the capability to generate a random session ID.

To Reproduce

  1. Test if the endpoint is working and accessible, GET http://localhost:8055/utils/random/string
  2. Do a bad request GET http://localhost:8055/utils/random/string?length=foo
  3. After this all calls to GET http://localhost:8055/utils/random/string will return an empty string instead of a random string
  4. In this error situation you'll see authentication refreshes fail for the app and api.

Impact

This counts as an unauthenticated denial of service attack vector so this impacts all unpatched instances reachable over the internet.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-06-04 17:53 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

directus

npm · All systems

Affected

  • introduced 0, fixed 10.11.2 (semver)

Fixed versions

10.11.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences