CVE-2024-45596
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.
How to fix
- monospace directus10.13.3, 11.1.0 or later
- directus10.13.3, 11.1.0 or later
- @directus/api21.0.1, 22.2.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| monospace directus | v < 10.13.3, 11.0.0 ≤ v < 11.1.0 | 10.13.3, 11.1.0 |
| directusnpm | v < 10.13.3, 11.0.0-rc.1 ≤ v < 11.1.0 | 10.13.3, 11.1.0 |
| @directus/apinpm | v < 21.0.1, 22.0.0 ≤ v < 22.2.0 | 21.0.1, 22.2.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.