{"id":"CVE-2024-47822","published":"2024-10-08T17:54:21Z","modified":"2025-04-14T12:02:32Z","title":"Directus inserts access token from query string into logs","vendor":"directus","product":"directus","tier":"tail","description":{"text":"Directus is a real-time API and App dashboard for managing SQL database content. Access tokens from query strings are not redacted and are potentially exposed in system logs which may be persisted. The access token in `req.query` is not redacted when the `LOG_STYLE` is set to `raw`. If these logs are not properly sanitized or protected, an attacker with access to it can potentially gain administrative control, leading to unauthorized data access and manipulation. This impacts systems where the `LOG_STYLE` is set to `raw`. The `access_token` in the query could potentially be a long-lived static token. Users with impacted systems should rotate their static tokens if they were provided using query string. This vulnerability has been patched in release version 10.13.2 and subsequent releases as well. Users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00311,"percentile":0.24591,"provenance":"source"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"references":[{"url":"https://github.com/directus/directus/security/advisories/GHSA-vw58-ph65-6rxp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/directus/directus/commit/2e893f9c576d5a02506272fe2c0bcc12e6c58768","tags":["x_refsource_MISC"]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":4.92},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"directus","affectedVersions":[{"vendor":"directus","product":"directus","versions":["< 10.13.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-08T18:21:09.697840Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@directus/api","vulnerableRanges":["<21.0.0"],"patched":["21.0.0"],"from":["GHSA-vw58-ph65-6rxp"],"provenance":"source"}],"summary":{"text":"Directus, the real-time API and app dashboard for managing SQL database content, fails to redact access tokens taken from query strings, so they are written in plain form into system logs when the LOG_STYLE setting is set to raw. An attacker who can read those logs, which may be persisted, and who has local access to them (with high privileges required) and needs the affected logging configuration to be in place, could obtain a token that may grant administrative control over the instance; user interaction is also listed as required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:51Z"},"euvd":{"id":"EUVD-2024-42701","exploited":false,"provenance":"source"}}