CVE-2024-36128: Directus is soft-locked by providing a string value to random string util

Published Jun 3, 2024
·
Updated

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.

Other sources

Directus is a real-time API and App dashboard for managing SQL database content. Prior to 10.11.2, 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. This vulnerability is fixed in 10.11.2.

MITRE

Affected Software

2 affected componentsFixes available
npm/directus<=10.11.1
10.11.2
Monospace Directus Node.js<10.11.2

Event History

Jun 3, 2024
CVE Published
via MITRE·02:59 PM
Data Sourced
via MITRE·02:59 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Jun 4, 2024
Advisory Published
via GitHub·05:53 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-36128?

CVE-2024-36128 is classified as a denial of service vulnerability due to memory issues when non-numeric length values are used in random string generation.

2

How do I fix CVE-2024-36128?

To fix CVE-2024-36128, upgrade Directus to version 10.11.2 or later to ensure proper handling of length values in random string generation.

3

Which versions of Directus are affected by CVE-2024-36128?

CVE-2024-36128 affects Directus versions up to and including 10.11.1.

4

What happens if I do not address CVE-2024-36128?

Failing to address CVE-2024-36128 can lead to service interruptions where logged-in sessions cannot be refreshed, causing users to experience downtime.

5

Is this vulnerability related to any specific platform?

CVE-2024-36128 affects the Directus application across all platforms that utilize the affected versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203