{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-24731 exists.","fix":"No fix has been published for CVE-2021-24731 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-24731 is a critical SQL injection vulnerability in Unknown Registration Forms – User profile, Content Restriction, Spam Protection, Payment Gateways, Invitation Codes, published on 8 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-24731 and fix it if it is affected.\n\nWhat it is: CVE-2021-24731 is a critical SQL injection vulnerability in Unknown Registration Forms – User profile, Content Restriction, Spam Protection, Payment Gateways, Invitation Codes, published on 8 Nov 2021. 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-2021-24731 exists.\n\nAffected product: Unknown Registration Forms – User profile, Content Restriction, Spam Protection, Payment Gateways, Invitation Codes. 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-24731/ (Markdown: https://insights.sbomify.com/CVE-2021-24731/index.md)","id":"CVE-2021-24731","markdown":"https://insights.sbomify.com/CVE-2021-24731/index.md","name":"CVE-2021-24731","record":{"aliases":["GHSA-3m93-8pm8-gqxj"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"WordPress plugin","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary SQL commands via the login REST API endpoint in the Pie Register WordPress plugin.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"WPScan","cpe":[{"product":"pie_register","vendor":"genetechsolutions"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"The Registration Forms – User profile, Content Restriction, Spam Protection, Payment Gateways, Invitation Codes WordPress plugin before 3.7.1.6 does not properly escape user data before using it in a SQL statement in the wp-json/pie/v1/login REST API endpoint, leading to an SQL injection.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-24731.yaml","stars":null,"title":"Pie Register \u003c 3.7.1.6 - SQL Injection"}],"tier":"weaponised"},"has_fix":null,"headline":"Pie Register \u003c 3.7.1.6 - Unauthenticated SQL Injection","id":"CVE-2021-24731","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2021"},"n_packages":0,"n_references":1,"next":{"headline":"Dflip Lite \u003c 1.7.10 - Contributor+ Stored Cross-Site Scripting","id":"CVE-2021-24732"},"packages":[],"prev":{"headline":"Logo Showcase with Slick Slider \u003c 1.2.5 - Subscriber+ Arbitrary Media Title/Description/Alt Text/URL Update","id":"CVE-2021-24730"},"products":["Registration Forms – User profile, Content Restriction, Spam Protection, Payment Gateways, Invitation Codes"],"published":"2021-11-08","related":[{"cvss_score":10,"headline":"WordPress Pie Register plugin \u003c= 3.8.3.1 - Unauthenticated Arbitrary File Upload vulnerability","id":"CVE-2024-27957","kev_date_added":null,"published":"2024-03-17"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2019-15659","kev_date_added":null,"published":"2019-08-27"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2018-10969","kev_date_added":null,"published":"2018-06-17"},{"cvss_score":8.1,"headline":"Pie Register \u003c 3.7.1.6 - Unauthenticated Arbitrary Login","id":"CVE-2021-24647","kev_date_added":null,"published":"2021-11-08"},{"cvss_score":6.5,"headline":"Pie Register \u003c 3.8.1.3 - Unauthenticated Arbitrary User Deletion","id":"CVE-2022-4024","kev_date_added":null,"published":"2022-12-19"},{"cvss_score":6.5,"headline":"SQL injection in n/a","id":"CVE-2015-7682","kev_date_added":null,"published":"2015-10-16"}],"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"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Unknown"]},"summary":"Unauthenticated attackers can execute arbitrary SQL commands via the login REST API endpoint in the Pie Register WordPress plugin.","url":"https://insights.sbomify.com/CVE-2021-24731/"}