High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-42362
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:21 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-42362
Complete source record
{
"id": "99c4365c3dfdef3ae914797cae456945db432bf2d8c79c260fa29f374caadf50",
"url": "https://osv.dev/vulnerability/CVE-2021-42362",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-42362",
"summary": "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.",
"evidence": "osv:CVE-2021-42362",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-42362",
"aliases": [
"CVE-2021-42362"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/cabrerahector/wordpress-popular-posts",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "0dacc9565fcf110c83329483aa8650f09a977285"
},
{
"fixed": "d9b274cf6812eb446e4103cb18f69897ec6fe601"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:wordpress_popular_posts_project:wordpress_popular_posts:*:*:*:*:*:wordpress:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.3.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "d9b274cf6812eb446e4103cb18f69897ec6fe601"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"5.3.2",
"5.3.1",
"5.3.0",
"5.2.4",
"5.2.3",
"5.2.2",
"5.2.1",
"5.2.0",
"5.1.0",
"5.0.2",
"5.0.1",
"5.0.1-beta-1",
"5.0.0",
"4.2.2",
"4.2.1",
"4.2.0",
"4.1.2",
"4.1.1",
"4.1.0",
"4.0.13",
"4.0.12",
"4.0.11",
"4.0.10",
"4.0.9",
"4.0.8",
"4.0.7-beta-4",
"4.0.7-beta-3",
"4.0.7-beta-2",
"4.0.7-beta-1",
"4.0.6",
"4.0.5",
"4.0.3",
"4.0.2",
"4.0.1",
"4.0.1-beta-2",
"4.0.1-beta-1",
"4.0.0",
"3.3.4-final",
"3.3.4",
"3.3.3",
"3.3.2",
"3.3.2-beta-1",
"3.3.1",
"3.3.0",
"3.3.0-beta-1",
"3.2.3",
"3.2.3-beta-3",
"3.2.3-beta-2",
"3.2.3-beta-1",
"3.2.2",
"3.2.2-beta-3",
"3.2.2-beta-2",
"3.2.2-beta-1",
"3.2.1",
"3.2.0",
"3.2.0-beta-2",
"3.2.0-beta-1",
"3.1.2-beta-1",
"3.1.1",
"3.1.1-beta-2",
"3.1.1-beta-1",
"3.1.0",
"3.1.0-beta-3",
"3.1.0-beta-2",
"3.1.0-beta-1",
"3.0.4-beta-5",
"3.0.4-beta-4",
"3.0.4-beta-3",
"3.0.4-beta-2",
"3.0.4-beta-1",
"3.0.3",
"3.0.2",
"3.0.2-beta-1",
"3.0.1",
"3.0.0",
"3.0.0-beta-2",
"3.0.0-beta-1",
"3.0.0-alpha-4",
"3.0.0-alpha-2",
"3.0.0-alpha-1",
"2.3.7",
"2.3.6"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-42362.json"
}
}
],
"modified": "2026-10-20T10:54:04.045350507Z",
"provider": "osv",
"references": [
"https://wpscan.com/vulnerability/bd4f157c-a3d7-4535-a587-0102ba4e3009",
"https://www.wordfence.com/vulnerability-advisories/#CVE-2021-42362",
"https://github.com/cabrerahector/wordpress-popular-posts/commit/d9b274cf6812eb446e4103cb18f69897ec6fe601",
"https://plugins.trac.wordpress.org/changeset/2542638/wordpress-popular-posts/trunk/src/Image.php",
"https://blog.nintechnet.com/improper-input-validation-fixed-in-wordpress-popular-posts-plugin/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-42362",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384836,
"published_at": "2021-11-17T18:15:08.297+00:00"
}