Vulnerability · Published May 13, 2024 · Assigned by GitHub_M

CVE-2024-34709Directus Lacks Session Tokens Invalidation

Medium 5.4

In plain English

A medium-severity security flaw in directus from directus. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.4%top 60.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Directus is a real-time API and App dashboard for managing SQL database content. Prior to 10.11.0, session tokens function like the other JWT tokens where they are not actually invalidated when logging out. The `directus_session` gets destroyed and the cookie gets deleted but if the cookie value is captured, it will still work for the entire expiry time which is set to 1 day by default. Making it effectively a long lived unrevokable stateless token instead of the stateful session token it was meant to be. This vulnerability is fixed in 10.11.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmdirectus10.11.0GHSA-g65h-35f3-x2w3

Affected products (as reported)

VendorProductVersions
directus directus >= 10.10.0, < 10.11.0

Weakness: CWE-613 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N

References