5.0medium
Directus privilege escalation vulnerability using Share feature
- Severity
- 5.0medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.42% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pmf4-v838-29hg
Description
Directus is a real-time API and App dashboard for managing SQL database content. Prior to version 11.2.0, when sharing an item, a typical user can specify an arbitrary role. It allows the user to use a higher-privileged role to see fields that otherwise the user should not be able to see. Instances that are impacted are those that use the share feature and have specific roles hierarchy and fields that are not visible for certain roles. Version 11.2.0 contains a patch the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| directus directus | < 11.2.0 | CVE List |
| directus (npm) | before 11.2.0 | GitHub Advisory Database |
| @directus/app (npm) | before 13.3.1 | GitHub Advisory Database |
| monospace directus | before 11.2.0 | NVD |
All scores
| GitHub_M | 5.0medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
| GitHub | 5.0medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Directus is a real-time API and App dashboard for managing SQL database content. Prior to version 11.2.0, when sharing an item, a typical user can specify an arbitrary role. It allows the user to use a higher-privileged role to see fields that otherwise the user should not be able to see. Instances that are impacted are those that use the share feature and have specific roles hierarchy and fields that are not visible for certain roles. Version 11.2.0 contains a patch the issue.
GitHub Advisory Database
Summary
When sharing an item, user can specify an arbitrary role. It allows user to use a higher-privileged role to see fields that otherwise the user should not be able to see.
Details
Specifying role on share should be available only for admins. The current flow has a security flaw.
Each other role should allow to share only in the context of the same role. As there is no role hierarchy in Directus, it is impossible to tell which role is higher or lower, so only admins should be able to specify the role for share.
Optionally, instead of specifying a role, shareer* should be able to specify which fields (limited to fields shareer sees) are available on shared item. Similarily to import.
*shareer - a person that creates a share link to item
PoC
- Create a collection with a secret field.
- Create role A that sees the secret field
- Create role B that does not see the secret field, but can use share feature.
- Create item with secret field filled.
- Use account with role B to share the object as role A and gain unauthorized access to secret value.
Here's video example: https://www.youtube.com/watch?v=DbV4IxbWzN4 I had to upload it to YouTube, because GitHub allows only 10MB videos.
Impact
Impacted are instances that use the share feature and have specific roles hierarchy and fields that are not visible for certain roles.
NVD (es)
Directus es una API en tiempo real y un panel de control de aplicaciones para administrar el contenido de bases de datos SQL. Antes de la versión 11.2.0, al compartir un elemento, un usuario típico podía especificar un rol arbitrario. Esto permite al usuario usar un rol con mayores privilegios para ver campos que, de lo contrario, no podría ver. Las instancias que se ven afectadas son aquellas que usan la función de compartir y tienen una jerarquía de roles específica y campos que no son visibles para ciertos roles. La versión 11.2.0 contiene un parche para solucionar el problema.
References
| https://github.com/directus/directus/security/advisories/GHSA-pmf4-v838-29hg | exploit, vendor-advisory, web | |
| https://github.com/directus/directus/pull/23716 | issue-tracking, web | |
| https://github.com/directus/directus/commit/e288a43a79613dada905da683f4919c6965ac804 | patch, web | |
| https://github.com/directus/directus/releases/tag/v11.2.0 | release-notes, web | |
| https://www.youtube.com/watch?v=DbV4IxbWzN4 | exploit, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-24353 | advisory | |
| https://github.com/directus/directus | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-24353 changed 2025-02-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pmf4-v838-29hg changed 2025-02-11 | CC-BY-4.0 |
| NVD | CVE-2025-24353 changed 2026-06-17 | Public domain |