cve.bz

CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection), published in 2022, page 34

Filter

The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

What the weakness is: CWE-89 at MITRE. OWASP Top 10: A05:2025 Injection. All weaknesses

Related attack patterns (CAPEC): 6
  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to CWE-89, as MITRE names them. Credits.

Ask an AI about CWE-89

Show the promptExplain CWE-89: Improper Neutralization of Special Elements used in an SQL Command and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/89.html and https://cve.bz/cve/cwe/89?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

  1. 9.8CVE-2022-24263phpgurukul hospital management systemExploitEPSS 8.3%

    Hospital Management System v4.0 was discovered to contain a SQL injection vulnerability in /Hospital-Management-System-master/func.php via the email parameter.

  2. 7.5CVE-2021-46459victor cms project victor cmsEPSS 1.4%

    Victor CMS v1.0 was discovered to contain multiple SQL injection vulnerabilities in the component admin/users.php?source=add_user. These vulnerabilities can be exploited through a crafted POST request via the user_name, user_firstname,user…

  3. 7.5CVE-2021-46458victor cms project victor cmsEPSS 1.4%

    Victor CMS v1.0 was discovered to contain a SQL injection vulnerability in the component admin/posts.php?source=add_post. This vulnerability can be exploited through a crafted POST request via the post_title parameter.

  4. 7.5CVE-2022-24124casbin casdoorExploitEPSS 55%

    The query API in Casdoor before 1.13.1 has a SQL injection vulnerability related to the field and value parameters, as demonstrated by api/get-organizations.

  5. 9.8CVE-2021-46448hhg-multistore multistoreEPSS 1.2%

    H.H.G Multistore v5.1.0 and below was discovered to contain a SQL injection vulnerability via /admin/customers.php?page=1&cID.

  6. 9.8CVE-2021-46446hhg-multistore multistoreEPSS 1.3%

    H.H.G Multistore v5.1.0 and below was discovered to contain a SQL injection vulnerability via /admin/admin.php?module=admin_access_group_edit&aagID.

  7. 9.8CVE-2021-46445hhg-multistore multistoreEPSS 1.2%

    H.H.G Multistore v5.1.0 and below was discovered to contain a SQL injection vulnerability via /admin/categories.php?box_group_id.

  8. 9.8CVE-2021-46444hhg-multistore multistoreEPSS 1.2%

    H.H.G Multistore v5.1.0 and below was discovered to contain a SQL injection vulnerability via /admin/admin.php?module=admin_group_edit&agID.

  9. 9.8CVE-2021-41609classapps selectsurvey.netEPSS 2.2%

    SQL injection in the ID parameter of the UploadedImageDisplay.aspx endpoint of SelectSurvey.NET before 5.052.000 allows a remote, unauthenticated attacker to retrieve data from the application's backend database via boolean-based blind and…

  10. 9.8CVE-2022-22294zfaka project zfakaEPSS 1.2%

    A SQL injection vulnerability exists in ZFAKA<=1.43 which an attacker can use to complete SQL injection in the foreground and add a background administrator account.

  11. 9.8CVE-2020-25905mobile shop system project mobile shop systemEPSS 1.7%

    An SQL Injection vulnerabilty exists in Sourcecodester Mobile Shop System in PHP MySQL 1.0 via the email parameter in (1) login.php or (2) LoginAsAdmin.php.

  12. 9.8CVE-2021-45435oretnom23 simple cold storage management systemEPSS 1.1%

    An SQL Injection vulnerability exists in Sourcecodester Simple Cold Storage Management System using PHP/OOP 1.0 via the username field in login.php.

  13. 9.8CVE-2021-44249online motorcycle \(bike\) rental system project online motorcycle \(bike\) rental systemEPSS 1.9%

    Online Motorcycle (Bike) Rental System 1.0 is vulnerable to a Blind Time-Based SQL Injection attack within the login portal. This can lead attackers to remotely dump MySQL database credentials.

  14. 4.9CVE-2022-21720glpi-project glpiEPSS 1.1%

    GLPI is a free asset and IT management software package. Prior to version 9.5.7, an entity administrator is capable of retrieving normally inaccessible data via SQL injection. Version 9.5.7 contains a patch for this issue. As a workaround,…

  15. 9.8CVE-2021-46427simple chatbot application project simple chatbot applicationEPSS 2.1%

    An SQL Injection vulnerability exists in Sourcecodester Simple Chatbot Application 1.0 via the message parameter in Master.php.

  16. 9.8CVE-2021-46377cskaza cszcmsEPSS 1.0%

    There is a front-end sql injection vulnerability in cszcms 1.2.9 via cszcms/controllers/Member.php#viewUser

  17. 7.5CVE-2021-46385mingsoft mcmsEPSS 1.6%

    https://gitee.com/mingSoft/MCMS MCMS <=5.2.5 is affected by: SQL Injection. The impact is: obtain sensitive information (remote). The component is: net.mingsoft.mdiy.action.FormDataAction#queryData. The attack vector is: 0 or sleep(3). ¶¶ …

  18. 7.5CVE-2021-46383mingsoft mcmsEPSS 1.6%

    https://gitee.com/mingSoft/MCMS MCMS <=5.2.5 is affected by: SQL Injection. The impact is: obtain sensitive information (remote). The component is: net.mingsoft.mdiy.action.web.DictAction#list. The attack vector is: 0 or sleep(3). ¶¶ MCMS …

  19. 9.8CVE-2022-0362showdocEPSS 1.5%

    SQL Injection in Packagist showdoc/showdoc prior to 2.10.3.

  20. 8.1CVE-2021-36348dell integrated dell remote access controller 9 firmwareEPSS 1.2%

    iDRAC9 versions prior to 5.00.20.00 contain an input injection vulnerability. A remote authenticated malicious user with low privileges may potentially exploit this vulnerability to cause information disclosure or denial of service by supp…

  21. 9.8CVE-2022-0332moodleExploitEPSS 32%

    A flaw was found in Moodle in versions 3.11 to 3.11.4. An SQL injection risk was identified in the h5p activity web service responsible for fetching user attempt data.

  22. 7.5CVE-2021-43863nextcloudEPSS 1.9%

    The Nextcloud Android app is the Android client for Nextcloud, a self-hosted productivity platform. The Nextcloud Android app uses content providers to manage its data. Prior to version 3.18.1, the providers `FileContentProvider` and `Disk…

  23. 9.8CVE-2021-46089jeecg bootEPSS 2.1%

    In JeecgBoot 3.0, there is a SQL injection vulnerability that can operate the database with root privileges.

  24. 8.8CVE-2021-45803iresturant project iresturantEPSS 1.2%

    MartDevelopers iResturant 1.0 is vulnerable to SQL Injection. SQL Injection occurs because this view parameter value is added to the SQL query without additional verification when viewing reservation.

  25. 9.8CVE-2021-45802iresturant project iresturantEPSS 1.4%

    MartDevelopers iResturant 1.0 is vulnerable to SQL Injection. SQL Injection occurs because the email and phone parameter values are added to the SQL query without any verification at the time of membership registration.

  26. 9.8CVE-2021-46451online project time management system project online project time management systemEPSS 1.3%

    An SQL Injection vulnerabilty exists in Sourcecodester Online Project Time Management System 1.0 via the pid parameter in the load_file function.

  27. 9.8CVE-2021-43420online payment hub project online payment hubEPSS 1.3%

    SQL injection vulnerability in Login.php in Sourcecodester Online Payment Hub v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the username parameter.

  28. 9.8CVE-2021-41928try my recipe project try my recipeEPSS 1.9%

    SQL injection in Sourcecodester Try My Recipe (Recipe Sharing Website - CMS) 1.0 by oretnom23, allows attackers to execute arbitrary code via the rid parameter to the view_recipe page.

  29. 9.8CVE-2021-41660patient appointment scheduler system project patient appointment scheduler systemEPSS 1.3%

    SQL injection vulnerability in Sourcecodester Patient Appointment Scheduler System v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the username and password fields to login.php.

  30. 9.8CVE-2021-41659oretnom23 banking systemEPSS 1.3%

    SQL injection vulnerability in Sourcecodester Banking System v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the username or password field.

  31. 7.2CVE-2021-4088mcafee data loss preventionEPSS 2.3%

    SQL injection vulnerability in Data Loss Protection (DLP) ePO extension 11.8.x prior to 11.8.100, 11.7.x prior to 11.7.101, and 11.6.401 allows a remote authenticated attacker to inject unfiltered SQL into the DLP part of the ePO database.…

  32. 9.8CVE-2021-41472simple membership system using php and ajax project simple membership system using php and ajaxEPSS 1.3%

    SQL injection vulnerability in Sourcecodester Simple Membership System v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the username and password parameters.

  33. 9.8CVE-2021-41471south gate inn online reservation system project south gate inn online reservation systemEPSS 1.3%

    SQL injection vulnerability in Sourcecodester South Gate Inn Online Reservation System v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the email and Password parameters.

  34. 9.6CVE-2021-40909php crud without refresh\/reload using ajax and datatables tutorial project php crud without refresh\/reload using ajax and datatables tutorialEPSS 2.3%

    Cross site scripting (XSS) vulnerability in sourcecodester PHP CRUD without Refresh/Reload using Ajax and DataTables Tutorial v1 by oretnom23, allows remote attackers to execute arbitrary code via the first_name, last_name, and email param…

  35. 9.8CVE-2021-40908purchase order management system project purchase order management systemEPSS 2.6%

    SQL injection vulnerability in Login.php in Sourcecodester Purchase Order Management System v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the username parameter.

  36. 9.8CVE-2021-40907storage unit rental management system project storage unit rental management systemEPSS 1.3%

    SQL injection vulnerability in Sourcecodester Storage Unit Rental Management System v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the username parameter to /storage/classes/Login.php.

  37. 9.8CVE-2021-40596oretnom23 online learning systemEPSS 1.3%

    SQL injection vulnerability in Login.php in sourcecodester Online Learning System v2 by oretnom23, allows attackers to execute arbitrary SQL commands via the faculty_id parameter.

  38. 8.8CVE-2021-25076wedevs wp user frontendExploitEPSS 17%

    The WP User Frontend WordPress plugin before 3.5.26 does not validate and escape the status parameter before using it in a SQL statement in the Subscribers dashboard, leading to an SQL injection. Due to the lack of sanitisation and escapin…

  39. 7.2CVE-2021-25045asgaros forumEPSS 1.6%

    The Asgaros Forum WordPress plugin before 1.15.15 does not validate or escape the forum_id parameter before using it in a SQL statement when editing a forum, leading to an SQL injection issue

  40. 7.2CVE-2021-24865acf-extended advanced custom fields\EPSS 1.6%

    The Advanced Custom Fields: Extended WordPress plugin before 0.8.8.7 does not validate the order and orderby parameters before using them in a SQL statement, leading to a SQL Injection issue

  41. 7.2CVE-2021-24858accesspressthemes wp cookie user infoEPSS 1.4%

    The Cookie Notification Plugin for WordPress plugin before 1.0.9 does not sanitise or escape the id GET parameter before using it in a SQL statement, when retrieving the setting to edit in the admin dashboard, leading to an authenticated S…

  42. 6.5CVE-2022-23857navidromeEPSS 1.0%

    model/criteria/criteria.go in Navidrome before 0.47.5 is vulnerable to SQL injection attacks when processing crafted Smart Playlists. An authenticated user could abuse this to extract arbitrary data from the database, including the user ta…

  43. 9.8CVE-2021-46024projectworlds online-shopping-webvsite-in-phpEPSS 1.0%

    Projectworlds online-shopping-webvsite-in-php 1.0 suffers from a SQL Injection vulnerability via the "id" parameter in cart_add.php, No login is required.

  44. 9.8CVE-2022-23366hms project hmsExploitEPSS 6.8%

    HMS v1.0 was discovered to contain a SQL injection vulnerability via patientlogin.php.

  45. 9.8CVE-2022-23365hms project hmsEPSS 1.3%

    HMS v1.0 was discovered to contain a SQL injection vulnerability via doctorlogin.php.

  46. 9.8CVE-2022-23364hms project hmsEPSS 1.3%

    HMS v1.0 was discovered to contain a SQL injection vulnerability via adminlogin.php.

  47. 9.8CVE-2022-23363online banking system project online banking systemEPSS 1.0%

    Online Banking System v1.0 was discovered to contain a SQL injection vulnerability via index.php.

  48. 9.8CVE-2021-40595online leave management system project online leave management systemEPSS 1.4%

    SQL injection vulnerability in Sourcecodester Online Leave Management System v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the username parameter to /leave_system/classes/Login.php.

  49. 8.1CVE-2021-44593simple college website project simple college websiteEPSS 4.4%

    Simple College Website 1.0 is vulnerable to unauthenticated file upload & remote code execution via UNION-based SQL injection in the username parameter on /admin/login.php.

  50. 9.8CVE-2021-40247oretnom23 budget and expense tracker systemEPSS 2.6%

    SQL injection vulnerability in Sourcecodester Budget and Expense Tracker System v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the username field.