# CVE-2021-29641: Directus 8 before 8.8.2 allows remote authenticated users to execute arbitrary code because file-upload permissions include the ability to…

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.87%, higher than 92% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2021-04-07T21:31:45.000Z
- Modified: 2026-06-17T03:48:04.150Z
- Weaknesses: CWE-434
- Assigned by: mitre

## Description

Directus 8 before 8.8.2 allows remote authenticated users to execute arbitrary code because file-upload permissions include the ability to upload a .php file to the main upload directory and/or upload a .php file and a .htaccess file to a subdirectory. Exploitation succeeds only for certain installations with the Apache HTTP Server and the local-storage driver (e.g., when the product was obtained from hub.docker.com).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rangerstudio directus: from 8.0.0 before 8.8.2

## Every score

- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <http://seclists.org/fulldisclosure/2021/Apr/14> (exploit, mailing-list, third-party-advisory)
- <https://sec-consult.com/de/vulnerability-lab/advisory/arbitrary-file-upload-and-bypassing-htaccess-rules-in-monospace-directus-headless-cms/> (exploit, third-party-advisory)
- <https://sec-consult.com/vulnerability-lab/advisory/arbitrary-file-upload-and-bypassing-htaccess-rules-in-monospace-directus-headless-cms/> (exploit, third-party-advisory)
- <http://packetstormsecurity.com/files/162118/Monospace-Directus-Headless-CMS-File-Upload-Rule-Bypass.html> (exploit, third-party-advisory, vdb-entry)
- <https://hub.docker.com/layers/directus/directus/v8.8.2-apache/images/sha256-d9898b6442b0150c3c377b50e706757f35d2d563bd82ddaf97f3ae4ba450a6e6?context=explore> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-29641](https://www.cve.org/CVERecord?id=CVE-2021-29641), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-29641](https://nvd.nist.gov/vuln/detail/CVE-2021-29641), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29641 · Whole record: https://cve.day/CVE-2021-29641.json · Rebuilt by cve.day 2026-11-25T22:58:00.666Z
