CVE-2022-26352: dotCMS Unrestricted Upload of File Vulnerability
An issue was discovered in the ContentResource API in dotCMS 3.0 through 22.02. Attackers can craft a multipart form request to post a file whose filename is not initially sanitized. This allows directory traversal, in which the file is saved outside of the intended storage location. If anonymous content creation is enabled, this allows an unauthenticated attacker to upload an executable file, such as a .jsp file, that can lead to remote code execution.
Other sources
dotCMS ContentResource API contains an unrestricted upload of file with a dangerous type vulnerability that allows for directory traversal, in which the file is saved outside of the intended storage location. Exploitation allows for remote code execution.
— CISA
Affected Software
Event History
Frequently Asked Questions
What is CVE-2022-26352?
CVE-2022-26352 is a vulnerability in dotCMS that allows attackers to upload and save files outside of the intended storage location.
Is the dotCMS Unrestricted Upload of File Vulnerability a critical vulnerability?
Yes, the dotCMS Unrestricted Upload of File Vulnerability has a severity rating of 9.8, which is considered critical.
How does the dotCMS Unrestricted Upload of File Vulnerability work?
Attackers can send a crafted multipart form request to the ContentResource API in dotCMS, allowing them to post a file with a filename that is not sanitized. This enables directory traversal and allows the file to be saved outside of the intended storage location.
Which versions of dotCMS are affected by CVE-2022-26352?
dotCMS versions 3.0 through 22.02 are affected by CVE-2022-26352.
How can I fix the dotCMS Unrestricted Upload of File Vulnerability?
To fix the vulnerability, it is recommended to upgrade dotCMS to a version that includes the security patch provided by the vendor. Ensure that file uploads are properly sanitized and restricted to the intended storage location.