CVE-2024-34708: Directus allows redacted data extraction on the API through "alias"

Published May 13, 2024
·
Updated

Summary A user with permission to view any collection using redacted hashed fields can get access the raw stored version using the alias functionality on the API. Normally, these redacted fields will return however if we change the request to ?alias[workaround]=redacted we can instead retrieve the plain text value for the field.

Steps to reproduce - Set up a simple role with read-access to users. - Create a new user with the role from the previous step - Assign a password to the user

The easiest way to confirm this vulnerability is by first visiting /users/me. You should be presented with a redacted JSON-object. Next, visit /users/me?alias[hash]=password. This time, the returned JSON object will included the raw password hash instead of the redacted value.

Workaround This can be avoided by removing permission to view the sensitive fields entirely from users or roles that should not be able to see them.

Other sources

Directus is a real-time API and App dashboard for managing SQL database content. A user with permission to view any collection using redacted hashed fields can get access the raw stored version using the alias functionality on the API. Normally, these redacted fields will return however if we change the request to ?alias[workaround]=redacted we can instead retrieve the plain text value for the field. This can be avoided by removing permission to view the sensitive fields entirely from users or roles that should not be able to see them. This vulnerability is fixed in 10.11.0.

MITRE

Affected Software

2 affected componentsFixes available
npm/directus<10.11.0
10.11.0
Monospace Directus Node.js<10.11.0

Event History

May 13, 2024
CVE Published
via MITRE·07:33 PM
Data Sourced
via MITRE·07:33 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·07:40 PM
May 14, 2024
Data Sourced
via NVD·03:39 PM
DescriptionSeverityWeakness
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-34708?

CVE-2024-34708 is classified with a severity level that allows unauthorized access to sensitive data.

2

How do I fix CVE-2024-34708?

To fix CVE-2024-34708, update Directus to version 10.11.0 or later.

3

What software is affected by CVE-2024-34708?

CVE-2024-34708 affects Directus versions prior to 10.11.0.

4

What type of vulnerability is CVE-2024-34708?

CVE-2024-34708 is a data exposure vulnerability that allows access to raw stored data.

5

Who is vulnerable to CVE-2024-34708?

Users with permission to view collections can be vulnerable to CVE-2024-34708.

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