Description
The WordPress Popular Posts WordPress plugin is vulnerable to arbitrary file uploads due to insufficient input file type validation found in the ~/src/Image.php file which makes it possible for attackers with contributor level access and above to upload malicious files that can be used to obtain remote code execution, in versions up to and including 5.3.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| WordPress Popular Posts | WordPress Popular Posts | 0.0 – ≤ 5.3.2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Wordpress Popular Posts Authenticated RCE
exploit/multi/http/wp_popular_posts_rce
Exploit-DB 1
- WordPress Plugin Popular Posts 5.3.2 - Remote Code Execution (RCE) (Authenticated) EDB-50129 · webapps · Jul 15, 2021
GitHub 2 repositories
-
samiba6/CVE-2021-42362 ★ 0 · Apr 14, 2025
The WordPress Popular Posts WordPress plugin is vulnerable to arbitrary file uploads due to insufficient input file type validation found in the ~/src/Image.php file which makes it possible for attac…
-
simonecris/CVE-2021-42362-PoC ★ 0 · Jul 14, 2021
Wordpress Most Popular Post plugin vuln
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://blog.nintechnet.com/improper-input-validation-fixed-in-wordpress-popular-posts-plugin/
- https://www.wordfence.com/vulnerability-advisories/#CVE-2021-42362
- https://plugins.trac.wordpress.org/changeset/2542638/wordpress-popular-posts/trunk/src/Image.php
- https://wpscan.com/vulnerability/bd4f157c-a3d7-4535-a587-0102ba4e3009
- http://packetstormsecurity.com/files/165376/WordPress-Popular-Posts-5.3.2-Remote-Code-Execution.html
- https://github.com/cabrerahector/wordpress-popular-posts/commit/d9b274cf6812eb446e4103cb18f69897ec6fe601 patch