CVE-2021-42362WordPress Popular Posts <= 5.3.2 Authenticated Arbitrary File Upload
- 8.8HighCVSS base score
- 79.8%Exploitation in 30 daysEPSS · top 0.4% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and an Exploit-DB entry for it.
Show the exploits2
Metasploit modules1 module
- Wordpress Popular Posts Authenticated RCE (Metasploit module) (opens in a new tab)
exploit/multi/http/wp_popular_posts_rceRank normaldisclosed 11 Jun 2021
Exploit-DB1 entry
- WordPress Plugin Popular Posts 5.3.2 - Remote Code Execution (RCE) (Authenticated) (Exploit-DB entry) (opens in a new tab)
EDB-ID 50129webapps, phppublished 15 Jul 2021Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By Wordfence
- 34 days later
· 34 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| WordfenceCNA (assigner) | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 79.8% · top 0.4% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
WordPress Popular Posts · WordPress Popular Posts
- affected 0.0 – ≤ 5.3.2
What to do
Solution: Update to version 5.3.3 or newer.
References
References6
- https://blog.nintechnet.com/improper-input-validation-fixed-in-wordpress-popular-posts-plugin/ (opens in a new tab)x_refsource_MISCx_transferred
- https://www.wordfence.com/vulnerability-advisories/#CVE-2021-42362 (opens in a new tab)x_refsource_MISCx_transferred
- https://plugins.trac.wordpress.org/changeset/2542638/wordpress-popular-posts/trunk/src/Image.php (opens in a new tab)x_refsource_MISCx_transferred
- https://wpscan.com/vulnerability/bd4f157c-a3d7-4535-a587-0102ba4e3009 (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/165376/WordPress-Popular-Posts-5.3.2-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/cabrerahector/wordpress-popular-posts/commit/d9b274cf6812eb446e4103cb18f69897ec6fe601 (opens in a new tab)patchx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-29333 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-42362)Record last updated .