CVE-2022-36031 Unhandled exception on illegal filename_disk value
An authorized user can crash the Directus application by setting a specific file field to a folder path and accessing it via the assets endpoint.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-36031?
CVE-2022-36031 is a medium-severity denial of service vulnerability in Monospace Directus, published on 19 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Directus is a free and open-source data platform for headless content management. The Directus process can be aborted by having an authorized user update the `filename_disk` value to a folder and accessing that file through the `/assets` endpoint. This vulnerability has been patched and release v9.15.0 contains the fix. Users are advised to upgrade. Users unable to upgrade may prevent this problem by making sure no (untrusted) non-admin users have permissions to update the `filename_disk` field on `directus_files`.
Weakness: CWE-755
Which versions are affected by CVE-2022-36031?
2 open source packages ship an affected version, including directus. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
directus npm | All versions | 9.15.0 |
directus npm | All versions | 9.15.0 |
Products include Monospace Directus.
How do I fix CVE-2022-36031?
Upgrade directus to 9.15.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-36031 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-36031 exists.
Other vulnerabilities in Monospace Directus
- CVE-2022-26969 Insecure default value for CORS configuration
- CVE-2025-55746 Directus allows unauthenticated file upload and file modification due to lacking input sanitization
- CVE-2026-35408 Directus is Missing Cross-Origin Opener Policy
- CVE-2026-61836 Directus: Authorization-dependent response served from unsegmented cache key
- CVE-2025-30353 Directus's webhook trigger flows can leak sensitive data
Sources
Also known as GHSA-77qm-wvqq-fg79.