CVE-2021-24236
Imagements <= 1.2.5 - Unauthenticated Arbitrary File Upload to RCE
Record summary
CVE-2021-24236 has a selected CVSS score of 9.8 (critical); EIP currently links 1 Nuclei template.
Description
The Imagements WordPress plugin through 1.2.5 allows images to be uploaded in comments, however only checks for the Content-Type in the request to forbid dangerous files. This allows unauthenticated attackers to upload arbitrary files by using a valid image Content-Type along with a PHP filename and code, leading to RCE.
Exploitation context
Available material
- Nuclei templates
- 1
Affected products and versions
1| Product | Source | Version range | Status |
|---|---|---|---|
ImagementsBrowse williewonka / Imagements | CVE List | 1.2.5 to ≤ 1.2.5 | affected |
Nuclei templates
1ProjectDiscoveryCRITICALWordPress Imagements <=1.2.5 - Arbitrary File UploadCVSS 9.8
WordPress Imagements plugin through 1.2.5 is susceptible to arbitrary file upload which can lead to remote code execution. The plugin allows images to be uploaded in comments but only checks for the Content-Type in the request to forbid dangerous files. An attacker can upload arbitrary files by using a valid image Content-Type along with a PHP filename and code.
Impact
This vulnerability can lead to remote code execution and compromise the affected WordPress site.
Remediation
Update WordPress Imagements plugin to version 1.2.6 or later to fix the arbitrary file upload vulnerability.
Source: ProjectDiscovery