{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-50498 exists.","fix":"No fix has been published for CVE-2024-50498 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-50498 is a critical code injection vulnerability in Ajit Bohra WP Query Console, published on 28 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-50498 and fix it if it is affected.\n\nWhat it is: CVE-2024-50498 is a critical code injection vulnerability in Ajit Bohra WP Query Console, published on 28 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-50498 exists.\n\nAffected product: Ajit Bohra WP Query Console. 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-2024-50498/ (Markdown: https://insights.sbomify.com/CVE-2024-50498/index.md)","id":"CVE-2024-50498","markdown":"https://insights.sbomify.com/CVE-2024-50498/index.md","name":"CVE-2024-50498","record":{"aliases":["GHSA-36p8-9jxx-p4v9"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"WordPress plugin","requires_auth":"none","summary":"Attackers can execute arbitrary code via code injection in the WP Query Console plugin, requiring an upgrade to mitigate.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Patchstack","cpe":[{"product":"wp_query_console","vendor":"lubus"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Improper Control of Generation of Code ('Code Injection') vulnerability in Ajit Bohra WP Query Console wp-query-console allows Code Injection.This issue affects WP Query Console: from n/a through \u003c= 1.0.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-11-04","github_poc":5,"max_poc_stars":3,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-11-04T22:13:45Z","kind":"github_poc","ref":"https://github.com/RandomRobbieBF/CVE-2024-50498","stars":3,"title":"WP Query Console \u003c= 1.0 - Unauthenticated Remote Code Execution"},{"date":"2024-12-04T01:30:19Z","kind":"github_poc","ref":"https://github.com/p0et08/CVE-2024-50498","stars":1,"title":"This is a exploit for CVE-2024-50498"},{"date":"2026-01-22T20:29:00Z","kind":"github_poc","ref":"https://github.com/JoshuaProvoste/0-click-RCE-Exploit-for-CVE-2024-50498","stars":1,"title":"Unauthenticated 0-click RCE exploit for CVE-2024-50498. Exploits a code injection vulnerability in the LUBUS WP Query Console plugin to execute arbitrary PHP code, write a web shell to the uploads directory, detect the target operating system, and achieve remote command execution via an interactive shell."},{"date":"2025-01-03T22:36:43Z","kind":"github_poc","ref":"https://github.com/Nxploited/CVE-2024-50498","stars":0,"title":null},{"date":"2026-01-27T22:19:22Z","kind":"github_poc","ref":"https://github.com/androidteacher/CVE-2024-50498-wpquery","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-50498.yaml","stars":null,"title":"WP Query Console \u003c= 1.0 - Remote Code Execution"}],"tier":"weaponised"},"has_fix":null,"headline":"WordPress WP Query Console plugin \u003c= 1.0 - Remote Code Execution (RCE) vulnerability","id":"CVE-2024-50498","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":0,"n_references":1,"next":{"headline":"WordPress Phlox Core Elements plugin \u003c= 2.17.4 - Broken Access Control vulnerability","id":"CVE-2024-50500"},"packages":[],"prev":{"headline":"WordPress Advanced Online Ordering and Delivery Platform plugin \u003c= 2.0.0 - Local File Inclusion vulnerability","id":"CVE-2024-50497"},"products":["WP Query Console"],"published":"2024-10-28","related":[],"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":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-28","vendors":["Ajit Bohra"]},"summary":"Attackers can execute arbitrary code via code injection in the WP Query Console plugin, requiring an upgrade to mitigate.","url":"https://insights.sbomify.com/CVE-2024-50498/"}