Imagements <= 1.2.5 - Arbitrary File Upload

Unrestricted Upload of File with Dangerous Type
CVE CVE-2021-24236
CVSS Critical (9.8)
Publicly Published April 8, 2021
Last Updated January 22, 2024
Researcher Jin Huang
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.

References

1 affected software package

Software Type Plugin
Software Slug imagements (view on wordpress.org)
Patched? No
Affected Version
  • <= 1.2.5
Patched Version
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.