CVE-2025-64749
JSON

4.3medium

Directus Vulnerable to Information Leakage in Existing Collections

Severity
4.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-cph6-524f-3hgr

Description

Directus is a real-time API and App dashboard for managing SQL database content. An observable difference in error messaging was found in the Directus REST API in versions of Directus prior to version 11.13.0. The `/items/{collection}` API returns different error messages for two cases: when a user tries to access an existing collection which they are not authorized to access, and when user tries to access a non-existing collection. The two differing error messages leak the existence of collections to users which are not authorized to access these collections. Version 11.13.0 fixes the issue.

Affected

Product or packageVersionsReported by
directus directus< 11.13.0CVE List
directus (npm)before 11.13.0GitHub Advisory Database
@directus/api (npm)before 32.0.0GitHub Advisory Database
monospace directusbefore 11.13.0NVD

All scores

GitHub_M4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-203CWE-209

SSVC (CISA-ADP): exploitation none, 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. An observable difference in error messaging was found in the Directus REST API in versions of Directus prior to version 11.13.0. The `/items/{collection}` API returns different error messages for two cases: when a user tries to access an existing collection which they are not authorized to access, and when user tries to access a non-existing collection. The two differing error messages leak the existence of collections to users which are not authorized to access these collections. Version 11.13.0 fixes the issue.

GitHub Advisory Database
Summary:

An observable difference in error messaging was found in the Directus REST API. The /items/{collection} API returns different error messages for these two cases:

  1. A user tries to access an existing collection which they are not authorized to access.
  2. A user tries to access a non-existing collection.

The two differing error messages leak the existence of collections to users which are not authorized to access these collections.

Details:

The following response returns an error message, when requesting a collection the user is not authorized to access.

GET /items/no-access
{
  "errors": [
    {
      "message": "You don't have permission to access collection \"no-access\" or it does not exist. Queried in root.",
      "extensions": {
        "reason": "You don't have permission to access collection \"no-access\" or it does not exist. Queried in root.",
        "code": "FORBIDDEN"
      }
    }
  ]
}

The following response returns a different error message when requesting a collection which does not exist.

GET /items/does-not-exist
{
  "errors": [
    {
      "message": "You don't have permission to access this.",
      "extensions": {
        "code": "FORBIDDEN"
      }
    }
  ]
}
Impact:

The difference in errors between non-existent collections and collections blocked by permissions leak the existence of a collection to a user which is not authorized to access this object.

Credit:

Sebastian Krause - Hackmanit GmbH

NVD (es)

Directus es una API en tiempo real y un panel de control de aplicaciones para gestionar contenido de base de datos SQL. Se encontró una diferencia observable en los mensajes de error en la API REST de Directus en versiones de Directus anteriores a la versión 11.13.0. La API '/items/{collection}' devuelve mensajes de error diferentes para dos casos: cuando un usuario intenta acceder a una colección existente a la que no está autorizado a acceder, y cuando un usuario intenta acceder a una colección no existente. Los dos mensajes de error diferentes filtran la existencia de colecciones a usuarios que no están autorizados a acceder a estas colecciones. La versión 11.13.0 corrige el problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-64749 changed 2025-11-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-cph6-524f-3hgr changed 2025-11-15CC-BY-4.0
NVDCVE-2025-64749 changed 2026-10-19Public domain