CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection), published in 2022, page 18
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 prompt
Explain 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
- 7.2CVE-2022-32374advanced school management system project advanced school management systemEPSS 1.0%
itsourcecode Advanced School Management System v1.0 is vulnerable to SQL Injection via /school/model/get_subject_routing.php?id=.
- 7.2CVE-2022-32373advanced school management system project advanced school management systemEPSS 1.0%
itsourcecode Advanced School Management System v1.0 is vulnerable to SQL Injection via /school/model/get_exam.php?id=.
- 7.2CVE-2022-32368advanced school management system project advanced school management systemEPSS 1.0%
itsourcecode Advanced School Management System v1.0 is vulnerable to SQL Injection via /school/model/get_grade.php?id=.
- 7.2CVE-2022-32381advanced school management system project advanced school management systemEPSS 1.0%
itsourcecode Advanced School Management System v1.0 is vulnerable to SQL Injection via /school/model/get_admin_profile.php?my_index=.
- 7.2CVE-2022-32380advanced school management system project advanced school management systemEPSS 1.0%
itsourcecode Advanced School Management System v1.0 is vulnerable to SQL Injection via /school/model/get_student_subject.php?index=.
- 7.2CVE-2022-32379advanced school management system project advanced school management systemEPSS 1.0%
itsourcecode Advanced School Management System v1.0 is vulnerable to SQL Injection via /school/model/get_parents_profile.php?my_index=.
- 7.2CVE-2022-32378advanced school management system project advanced school management systemEPSS 1.0%
itsourcecode Advanced School Management System v1.0 is vulnerable to SQL Injection via /school/model/get_teacher_profile.php?my_index=.
- 7.2CVE-2022-32377advanced school management system project advanced school management systemEPSS 1.0%
itsourcecode Advanced School Management System v1.0 is vulnerable to SQL Injection via /school/model/get_exam_timetable.php?id=.
- 7.2CVE-2022-32376advanced school management system project advanced school management systemEPSS 1.0%
itsourcecode Advanced School Management System v1.0 is vulnerable to SQL Injection via /school/model/get_events.php?event_id=.
- 7.2CVE-2022-32375advanced school management system project advanced school management systemEPSS 1.0%
itsourcecode Advanced School Management System v1.0 is vulnerable to SQL Injection via /school/model/get_timetable.php?id=.
- 7.2CVE-2022-32992online tours and travels management system project online tours and travels management systemEPSS 1.0%
Online Tours And Travels Management System v1.0 was discovered to contain a SQL injection vulnerability via the tname parameter at /admin/operations/tax.php.
- 8.8CVE-2022-32991web based quiz system project web based quiz systemEPSS 1.1%
Web Based Quiz System v1.0 was discovered to contain a SQL injection vulnerability via the eid parameter at welcome.php.
- 8.8CVE-2022-32302theme park ticketing system project theme park ticketing systemEPSS 1.0%
Theme Park Ticketing System v1.0 was discovered to contain a SQL injection vulnerability via the id parameter at edit_ticket.php.
- 9.8CVE-2022-32301youdiancmsEPSS 1.1%
YoudianCMS v9.5.0 was discovered to contain a SQL injection vulnerability via the IdList parameter at /App/Lib/Action/Home/ApiAction.class.php.
- 8.8CVE-2022-32300youdiancmsEPSS 1.3%
YoudianCMS v9.5.0 was discovered to contain a SQL injection vulnerability via the MailSendID parameter at /App/Lib/Action/Admin/MailAction.class.php.
- 8.8CVE-2022-32299youdiancmsEPSS 1.1%
YoudianCMS v9.5.0 was discovered to contain a SQL injection vulnerability via the id parameter at /App/Lib/Action/Admin/SiteAction.class.php.
- 9.8CVE-2022-32101kkcms project kkcmsEPSS 1.1%
kkcms v1.3.7 was discovered to contain a SQL injection vulnerability via the cid parameter at /template/wapian/vlist.php.
- 6.5CVE-2021-41672peel shoppingEPSS 1.5%
PEEL Shopping CMS 9.4.0 is vulnerable to authenticated SQL injection in utilisateurs.php. A user that belongs to the administrator group can inject a malicious SQL query in order to affect the execution logic of the application and retrive…
- 9.8CVE-2019-4575ibm financial transaction managerEPSS 1.2%
IBM Financial Transaction Manager for Digital Payments for Multi-Platform 3.2.0 through 3.2.9 is vulnerable to SQL injection. A remote attacker could send specially-crafted SQL statements, which could allow the attacker to view, add, modif…
- 8.8CVE-2022-2086bank management system project bank management systemEPSS 20%
A vulnerability, which was classified as critical, has been found in SourceCodester Bank Management System 1.0. Affected by this issue is login.php. The manipulation of the argument password with the input 1'and 1=2 union select 1,sleep(10…
- 7.2CVE-2022-32363product show room site project product show room siteEPSS 1.0%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/admin/categories/view_category.php?id=.
- 7.2CVE-2022-32362product show room site project product show room siteEPSS 1.0%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/admin/categories/manage_category.php?id=.
- 7.2CVE-2022-32359product show room site project product show room siteEPSS 1.0%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/classes/Master.php?f=delete_category.
- 7.2CVE-2022-32358product show room site project product show room siteEPSS 1.0%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/classes/Master.php?f=delete_inquiry.
- 7.2CVE-2022-32355product show room site project product show room siteEPSS 1.0%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/admin/?page=products/view_product&id=.
- 7.2CVE-2022-32354product show room site project product show room siteEPSS 1.0%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/admin/?page=user/manage_user&id=.
- 7.2CVE-2022-32353product show room site project product show room siteEPSS 1.1%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/admin/categories/manage_field_order.php?id=.
- 7.2CVE-2022-32367product show room site project product show room siteEPSS 1.0%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/admin/?page=inquiries/view_inquiry&id=.
- 7.2CVE-2022-32366product show room site project product show room siteEPSS 1.0%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/admin/fields/view_field.php?id=.
- 7.2CVE-2022-32365product show room site project product show room siteEPSS 1.0%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/admin/fields/manage_field.php?id=.
- 7.2CVE-2022-32364product show room site project product show room siteEPSS 1.0%
Product Show Room Site v1.0 is vulnerable to SQL Injection via /psrs/admin/?page=products/manage_product&id=.
- 9.8CVE-2022-32337hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.1%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/admin/patients/manage_patient.php?id=.
- 9.8CVE-2022-32352hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.1%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/classes/Master.php?f=delete_patient_admission.
- 7.2CVE-2022-32351hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/classes/Master.php?f=delete_message.
- 7.2CVE-2022-32350hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/classes/Master.php?f=delete_room_type.
- 7.2CVE-2022-32349hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/classes/Master.php?f=delete_patient_history.
- 7.2CVE-2022-32348hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/classes/Master.php?f=delete_doctor.
- 7.2CVE-2022-32347hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/classes/Master.php?f=delete_room.
- 7.2CVE-2022-32346hospital\'s patient records management system project hospital\'s patient records management systemEPSS 0.8%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/admin/rooms/view_room.php?id=.
- 7.2CVE-2022-32345hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/admin/rooms/manage_room.php?id=.
- 7.2CVE-2022-32344hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/classes/Master.php?f=delete_patient.
- 7.2CVE-2022-32343hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via hprms/admin/room_types/manage_room_type.php?id=.
- 7.2CVE-2022-32342hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/admin/room_types/view_room_type.php?id=.
- 7.2CVE-2022-32341hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/admin/?page=user/manage_user&id=.
- 7.2CVE-2022-32340hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/admin/?page=patients/view_patient&id=.
- 7.2CVE-2022-32339hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/admin/doctors/view_doctor.php?id=.
- 7.2CVE-2022-32338hospital\'s patient records management system project hospital\'s patient records management systemEPSS 1.0%
Hospital's Patient Records Management System v1.0 is vulnerable to SQL Injection via /hprms/admin/doctors/manage_doctor.php?id=.
- 7.2CVE-2022-32335fast food ordering system project fast food ordering systemEPSS 1.0%
Fast Food Ordering System v1.0 is vulnerable to SQL Injection via /ffos/admin/menus/manage_menu.php?id=.
- 7.2CVE-2022-32334fast food ordering system project fast food ordering systemEPSS 1.0%
Fast Food Ordering System v1.0 is vulnerable to SQL Injection via /ffos/admin/categories/manage_category.php?id=.
- 7.2CVE-2022-32333fast food ordering system project fast food ordering systemEPSS 1.0%
Fast Food Ordering System v1.0 is vulnerable to SQL Injection via /ffos/admin/sales/receipt.php?id=.