CVE-2022-26352 dotCMS Unrestricted Upload of File
Unauthenticated attackers can upload executable files via directory traversal in dotCMS if anonymous content creation is enabled, leading to remote code execution.
- Exploited in the wild
- Since 25 Aug 2022
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-26352?
CVE-2022-26352 is a critical path traversal vulnerability in Dotcms Dotcms, published on 17 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2022-26352?
It affects 1 product.
Products include Dotcms Dotcms.
How do I fix CVE-2022-26352?
No fix has been published for CVE-2022-26352 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 15 Sep 2022.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-26352 being exploited?
Yes. Attackers have exploited CVE-2022-26352 in the wild since at least 25 Aug 2022, including in ransomware campaigns.
Public exploit code: 1 Metasploit module and 1 Nuclei template.
Other vulnerabilities in Dotcms Dotcms
Sources
Also known as GHSA-pr6q-gfg3-vcjf.