CVE-2024-45596 json
Directus's session is cached for OpenID and OAuth2 if `redirect` is not used
published 2024-09-10 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-2769 , GHSA-cff8-x7jv-4fm8
- cvss
- 7.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm directus 10.13.3, 11.1.0
- npm @directus/api 21.0.1, 22.2.0
- monospace directus 10.13.3, 11.1.0
- rangerstudio directus 10.13.3, 11.1.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.66% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/directus/directus/security/advisories/GHSA-cff8-x7jv-4fm8 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| GitHub | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | directus | <10.13.3 >=11.0.0-rc.1, <11.1.0 |
10.13.3 11.1.0 |
| npm | @directus/api | <21.0.1 >=22.0.0, <22.2.0 |
21.0.1 22.2.0 |
Affected products
- directus directus
Classification
References
-
github.com
/directus/directus/commit/4aace0bbe57232e38cd6a287ee475293e46dc91b
web, patch
-
github.com
/directus/directus/commit/769fa22797bff5a9231599883b391e013f122e52
web, patch
-
github.com
/directus/directus/security/advisories/GHSA-cff8-x7jv-4fm8
web, exploit, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-45596
advisory
-
github.com
/directus/directus
package
-
github.com
/directus/directus/blob/main/api/src/auth/drivers/oauth2.ts#L422-L428
web
-
github.com
/directus/directus/blob/main/api/src/auth/drivers/openid.ts#L453-L459
web
Sources
- CVE List CVE-2024-45596
- GitHub Advisory GHSA-cff8-x7jv-4fm8
- NVD CVE-2024-45596
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.