QID 730495

Date Published: 2022-05-24

QID 730495: Dot CMS Multipart File Directory Traversal and Remote Code Execution (RCE) Vulnerability

When files are uploaded into dotCMS via the content API, but before they become content, dotCMS writes the file down in a temp directory. In the case of this vulnerability, dotCMS does not sanitize the filename passed in via the multipart request header and thus does not sanitize the temp file's name. This allows a specially crafted request to POST files to dotCMS via the ContentResource (POST /api/content) that get written outside of the dotCMS temp directory.

Affected Versions:
Dot CMS versions prior to 22.03, 5.3.8.10, 21.06.7

QID Detection Logic (Unauthenticated):
This QID checks for vulnerable version of Dot CMS by sending a GET request to /api/v1/appconfiguration endpoint.

Successful exploitation of the vulnerability may allow an attacker to upload a special .jsp file to the webapp/ROOT directory of dotCMS which can allow for remote code execution. Additionally, if dotCMS is configured "withCONTENT_APIS_ALLOW_ANONYMOUS=WRITE" then this vulnerability is exploitable by Anonymous users.

  • CVSS V3 rated as Critical - 10 severity.
  • CVSS V2 rated as Critical - 10 severity.
  • Solution

    Vendor has released patch, for more information please refer to SI-62

    Workaround:
    Please refer to SI-62 for workaround information.

    Vendor References

    CVEs related to QID 730495

    Software Advisories
    Advisory ID Software Component Link
    SI-62 URL Logo www.dotcms.com/security/SI-62
    © CVE.report 2026 |

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report