CVE-2022-36031 Unhandled exception on illegal filename_disk value

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
directus npmAll versions9.15.0
directus npmAll versions9.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.

All Monospace Directus vulnerabilities

Sources

Also known as GHSA-77qm-wvqq-fg79.

Is CVE-2022-36031 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free