Vulnerability · Published Sep 10, 2024 · Assigned by GitHub_M

CVE-2024-45596Directus's session is cached for OpenID and OAuth2 if `redirect` is not used

High 7.4

In plain English

A high-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.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)0.7%top 48.4% 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. An unauthenticated user can access credentials of last authenticated user via OpenID or OAuth2 where the authentication URL did not include redirect query string. This happens because on that endpoint for both OpenId and Oauth2 Directus is using the respond middleware, which by default will try to cache GET requests that met some conditions. Although, those conditions do not include this scenario, when an unauthenticated request returns user credentials. This vulnerability is fixed in 10.13.3 and 11.1.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@directus/api21.0.1GHSA-cff8-x7jv-4fm8
npm@directus/api22.2.0GHSA-cff8-x7jv-4fm8
npmdirectus10.13.3GHSA-cff8-x7jv-4fm8
npmdirectus11.1.0GHSA-cff8-x7jv-4fm8

Affected products (as reported)

VendorProductVersions
directus directus < 10.13.3>= 11.0.0, < 11.1.0

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

References