{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-42362 exists.","fix":"No fix has been published for CVE-2021-42362 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-42362 is a high-severity vulnerability in WordPress Popular Posts, published on 17 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-42362 and fix it if it is affected.\n\nWhat it is: CVE-2021-42362 is a high-severity vulnerability in WordPress Popular Posts, published on 17 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-42362 exists.\n\nAffected product: WordPress Popular Posts. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-42362/ (Markdown: https://insights.sbomify.com/CVE-2021-42362/index.md)","id":"CVE-2021-42362","markdown":"https://insights.sbomify.com/CVE-2021-42362/index.md","name":"CVE-2021-42362","record":{"aliases":["GHSA-p9wv-phc4-8hqf"],"analysis":{"component_type":"cms_plugin","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"WordPress plugin","requires_auth":"low_privilege","summary":"Authenticated attackers with contributor access can upload malicious files to achieve remote code execution in the WordPress Popular Posts plugin.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Wordfence","cpe":[{"product":"wordpress_popular_posts","vendor":"wordpress_popular_posts_project"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"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.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2021-06-11","github_poc":2,"max_poc_stars":0,"metasploit":1,"nuclei":0,"refs":[{"date":"2021-06-11","kind":"metasploit","ref":"exploit/multi/http/wp_popular_posts_rce","stars":null,"title":"Wordpress Popular Posts Authenticated RCE"},{"date":"2021-07-14T16:55:50Z","kind":"github_poc","ref":"https://github.com/simonecris/CVE-2021-42362-PoC","stars":0,"title":"Wordpress Most Popular Post plugin vuln"},{"date":"2021-07-15","kind":"exploitdb","ref":"50129","stars":null,"title":"WordPress Plugin Popular Posts 5.3.2 - Remote Code Execution (RCE) (Authenticated)"},{"date":"2025-04-14T20:59:58Z","kind":"github_poc","ref":"https://github.com/samiba6/CVE-2021-42362","stars":0,"title":"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,"}],"tier":"weaponised"},"has_fix":false,"headline":"WordPress Popular Posts \u003c= 5.3.2 Authenticated Arbitrary File Upload","id":"CVE-2021-42362","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"file_upload","year":"2021"},"n_packages":0,"n_references":6,"next":{"headline":"Preview E-Mails for WooCommerce \u003c= 1.6.8 Reflected Cross-Site Scripting","id":"CVE-2021-42363"},"packages":[],"prev":{"headline":"Contact Form Email \u003c= 1.3.24 Authenticated Stored Cross-Site Scripting","id":"CVE-2021-42361"},"products":["WordPress Popular Posts"],"published":"2021-11-17","related":[{"cvss_score":7.5,"headline":"Business logic in WordPress Popular Posts","id":"CVE-2022-43468","kev_date_added":null,"published":"2022-12-07"},{"cvss_score":6.5,"headline":"WordPress WordPress Popular Posts Plugin \u003c= 6.3.2 is vulnerable to Cross Site Scripting (XSS)","id":"CVE-2023-45607","kev_date_added":null,"published":"2023-10-18"},{"cvss_score":5.5,"headline":"WordPress Popular Posts plugin \u003c= 5.3.3 - Authenticated Persistent Cross-Site Scripting (XSS) vulnerability","id":"CVE-2021-36872","kev_date_added":null,"published":"2021-09-23"},{"cvss_score":5.4,"headline":"Cross-site scripting in WordPress Popular Posts","id":"CVE-2021-20746","kev_date_added":null,"published":"2021-06-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["WordPress Popular Posts"]},"summary":"Authenticated attackers with contributor access can upload malicious files to achieve remote code execution in the WordPress Popular Posts plugin.","url":"https://insights.sbomify.com/CVE-2021-42362/"}