SQL Injection (CWE-89)
CWE-89 occurs when a product builds an SQL statement from outside input and does not neutralize SQL syntax within that input. The database then treats part of the input as query logic instead of plain data. SQLi is the common abbreviation.
Updated
About CWE-89
Because databases often hold sensitive data, disclosure is frequent. Attackers may also alter or delete records, log in as another user, change authorization data, and in some setups execute system commands.
- MITRE name
- Improper Neutralization of Special Elements used in an SQL Command
- Abstraction
- Base: abstract, but detailed enough to infer detection and prevention methods
- Status
- Stable
Also Known As
- SQL injection
- SQLi
Mitigations
- Use prepared statements, parameterized queries or stored procedures that keep data apart from the query.
- Avoid building and executing query strings dynamically inside stored procedures.
- Use a vetted library or framework, such as a persistence layer, that protects against SQL injection when used properly.
- Run database connections with the least privilege required and use the strictest permissions on database objects.
- Repeat client-side checks on the server.
Detection
Automated static analysis can often detect it using data flow analysis, and dynamic testing with diverse inputs such as fuzzing can also reveal it.
CWE-89 in the KEV Catalog
as of 2026-11-25- 33 CISA KEV entries name SQL Injection (CWE-89) in their CVE record, ranking 14th among the 197 weaknesses named in the catalog.
- CISA added 5 CWE-89 entries to the KEV catalog in 2024, 4 in 2025, and 9 so far in 2026.
- Fortinet and SonicWall have the most CWE-89 entries in the CISA KEV catalog (3 each).
- For CWE-89 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 5 days, compared with 15 days for all entries added in that period.
- CISA marks 33% of CWE-89 KEV entries (11 of 33) as known to be used in ransomware campaigns, compared with 20% of all KEV entries.
- CISA's SSVC enrichment rates 82% of CWE-89 KEV entries with SSVC data (27 of 33) as automatable, compared with 41% across the catalog.
Related Attack Patterns
6 CAPEC patternsCAPEC-66SQL InjectionStandard · Severity High · Likelihood High
Loading…
CAPEC-108Command Line Execution through SQL InjectionDetailed · Severity Very High · Likelihood Low
Loading…
CAPEC-110SQL Injection through SOAP Parameter TamperingDetailed · Severity Very High · Likelihood High
Loading…
CAPEC-470Expanding Control over the Operating System from the DatabaseDetailed · Severity Very High
Loading…
CAPEC-7Blind SQL InjectionDetailed · Severity High · Likelihood High
Loading…
CAPEC-109Object Relational Mapping InjectionDetailed · Severity High · Likelihood Low
Loading…
CWE-89 Vulnerabilities
40 CVEs| CVE | Title | Vendor | CVSS | EPSS | KEV | Published |
|---|---|---|---|---|---|---|
| CVE-2026-114625KEV Security Advisory 0199 | Security Advisory 0199 | Arista Networks | 9.4 | 0.9% | KEV | 2026-10-22 |
| CVE-2026-76461KEV Cisco Secure Email Gateway SQL Injection Vulnerability | Cisco Secure Email Gateway SQL Injection Vulnerability | Cisco | 9.8 | 3.3% | KEV | 2026-09-14 |
| CVE-2026-9586KEV Unauthenticated SQL Injection Leading to Remote Code Execution in Switchvox SMB | Unauthenticated SQL Injection Leading to Remote Code Execution in Switchvox SMB | Sangoma | 9.3 | 19.0% | KEV | 2026-07-17 |
| CVE-2026-72898KEV Metabase SQL injection via password reset endpoint | Metabase SQL injection via password reset endpoint | Metabase | 10.0 | 19.4% | KEV | 2026-08-10 |
| CVE-2026-60137KEV WordPress < 7.0.2 - Facilitated SQL Injection via author__not_in in WP_Query | WordPress < 7.0.2 - Facilitated SQL Injection via author__not_in in WP_Query | WordPress | 5.9 | 5.3% | KEV | 2026-07-17 |
| CVE-2026-9082KEV Drupal core - Highly critical - SQL injection - SA-CORE-2026-004 | Drupal core - Highly critical - SQL injection - SA-CORE-2026-004 | Drupal | 9.8 | 15.7% | KEV | 2026-05-20 |
| CVE-2026-42208KEV LiteLLM: SQL injection in Proxy API key verification | LiteLLM: SQL injection in Proxy API key verification | BerriAI | 9.3 | 5.8% | KEV | 2026-05-08 |
| CVE-2026-21643KEV Fortinet FortiClient EMS SQL Injection Vulnerability | Fortinet FortiClient EMS SQL Injection Vulnerability | Fortinet | 9.1 | 20.5% | KEV | 2026-02-06 |
| CVE-2024-43468KEV Microsoft Configuration Manager Remote Code Execution Vulnerability | Microsoft Configuration Manager Remote Code Execution Vulnerability | Microsoft | 9.8 | 10.0% | KEV | 2024-10-08 |
| CVE-2025-57819KEV FreePBX Affected by Authentication Bypass Leading to SQL Injection and RCE | FreePBX Affected by Authentication Bypass Leading to SQL Injection and RCE | FreePBX | 10.0 | 46.7% | KEV | 2025-08-28 |
| CVE-2025-25257KEV Fortinet FortiWeb SQL Injection Vulnerability | Fortinet FortiWeb SQL Injection Vulnerability | Fortinet | 9.6 | 50.9% | KEV | 2025-07-17 |
| CVE-2025-25181KEV Advantive VeraCore SQL Injection Vulnerability | Advantive VeraCore SQL Injection Vulnerability | Advantive | 5.8 | 1.8% | KEV | 2025-02-03 |
| CVE-2020-29574KEV CyberoamOS (CROS) SQL Injection Vulnerability | CyberoamOS (CROS) SQL Injection Vulnerability | - | 9.8 | 4.7% | KEV | 2020-12-11 |
| CVE-2024-9465KEV Expedition: SQL Injection Leads to Firewall Admin Credential Disclosure | Expedition: SQL Injection Leads to Firewall Admin Credential Disclosure | Palo Alto Networks | 9.2 | 56.0% | KEV | 2024-10-09 |
| CVE-2024-9379KEV Ivanti Cloud Services Appliance (CSA) SQL Injection Vulnerability | Ivanti Cloud Services Appliance (CSA) SQL Injection Vulnerability | Ivanti | 6.5 | 2.6% | KEV | 2024-10-08 |
| CVE-2024-29824KEV Ivanti Endpoint Manager (EPM) SQL Injection Vulnerability | Ivanti Endpoint Manager (EPM) SQL Injection Vulnerability | Ivanti | 9.6 | 99.998% | KEV | 2024-05-31 |
| CVE-2024-6670KEV WhatsUp Gold HasErrors SQL Injection Authentication Bypass Vulnerability | WhatsUp Gold HasErrors SQL Injection Authentication Bypass Vulnerability | Progress Software Corporation | 9.8 | 66.7% | KEV | 2024-08-29 |
| CVE-2023-48788KEV Fortinet FortiClient EMS SQL Injection Vulnerability | Fortinet FortiClient EMS SQL Injection Vulnerability | Fortinet | 9.3 | 59.2% | KEV | 2024-03-12 |
| CVE-2023-46748KEV BIG-IP Configuration utility authenticated SQL injection vulnerability | BIG-IP Configuration utility authenticated SQL injection vulnerability | F5 | 8.8 | 2.1% | KEV | 2023-10-26 |
| CVE-2021-44026KEV Roundcube Webmail SQL Injection Vulnerability | Roundcube Webmail SQL Injection Vulnerability | - | 9.8 | 69.9% | KEV | 2021-11-19 |
| CVE-2023-34362KEV Progress MOVEit Transfer SQL Injection Vulnerability | Progress MOVEit Transfer SQL Injection Vulnerability | - | 9.8 | 80.9% | KEV | 2023-06-02 |
| CVE-2016-2386KEV SAP NetWeaver SQL Injection Vulnerability | SAP NetWeaver SQL Injection Vulnerability | - | 9.8 | 71.5% | KEV | 2016-02-16 |
| CVE-2017-18362KEV Kaseya VSA SQL Injection Vulnerability | Kaseya VSA SQL Injection Vulnerability | - | 9.8 | 86.8% | KEV | 2019-02-05 |
| CVE-2018-7841KEV Schneider Electric U.motion Builder SQL Injection Vulnerability | Schneider Electric U.motion Builder SQL Injection Vulnerability | U.motion | 9.8 | 71.9% | KEV | 2019-05-22 |
| CVE-2021-20028KEV SonicWall Secure Remote Access (SRA) SQL Injection Vulnerability | SonicWall Secure Remote Access (SRA) SQL Injection Vulnerability | SonicWall | 9.8 | 30.1% | KEV | 2021-08-04 |
| CVE-2019-12989KEV Citrix SD-WAN and NetScaler SQL Injection Vulnerability | Citrix SD-WAN and NetScaler SQL Injection Vulnerability | - | 9.8 | 95.0% | KEV | 2019-07-16 |
| CVE-2020-5722KEV Grandstream Networks UCM6200 Series SQL Injection Vulnerability | Grandstream Networks UCM6200 Series SQL Injection Vulnerability | - | 9.8 | 84.3% | KEV | 2020-03-23 |
| CVE-2020-17463KEV Fuel CMS SQL Injection Vulnerability | Fuel CMS SQL Injection Vulnerability | - | 9.8 | 97.1% | KEV | 2020-08-13 |
| CVE-2019-7481KEV SonicWall SMA100 SQL Injection Vulnerability | SonicWall SMA100 SQL Injection Vulnerability | SonicWall | 7.5 | 99.9% | KEV | 2019-12-17 |
| CVE-2021-42258KEV BQE BillQuick Web Suite SQL Injection Vulnerability | BQE BillQuick Web Suite SQL Injection Vulnerability | - | 9.8 | 76.4% | KEV | 2021-10-22 |
| CVE-2020-12271KEV Sophos SFOS SQL Injection Vulnerability | Sophos SFOS SQL Injection Vulnerability | - | 10.0 | 43.1% | KEV | 2020-04-27 |
| CVE-2021-20016KEV SonicWall SSLVPN SMA100 SQL Injection Vulnerability | SonicWall SSLVPN SMA100 SQL Injection Vulnerability | SonicWall | 9.8 | 40.0% | KEV | 2021-02-03 |
| CVE-2021-27101KEV Accellion FTA SQL Injection Vulnerability | Accellion FTA SQL Injection Vulnerability | - | 9.8 | 6.9% | KEV | 2021-02-16 |
| CVE-2026-12507 Authenticated remote code execution | Authenticated remote code execution | Zohocorp | 9.1 | 13.7% | 2026-11-12 | |
| CVE-2026-26980 Ghost has a SQL Injection in its Content API | Ghost has a SQL Injection in its Content API | TryGhost | 9.4 | 5.9% | 2026-02-20 | |
| CVE-2026-23696 Windmill < 1.603.3 File Ownership Handling SQLi RCE | Windmill < 1.603.3 File Ownership Handling SQLi RCE | Windmill Labs | 9.4 | 2.2% | 2026-04-07 | |
| CVE-2026-1207 Potential SQL injection via raster lookups on PostGIS | Potential SQL injection via raster lookups on PostGIS | djangoproject | 5.4 | 1.9% | 2026-02-03 | |
| CVE-2026-20947 Microsoft SharePoint Server Remote Code Execution Vulnerability | Microsoft SharePoint Server Remote Code Execution Vulnerability | Microsoft | 8.8 | 1.7% | 2026-01-13 | |
| CVE-2026-26988 LibreNMS: SQL Injection in ajax_table.php spreads through a covert data stream | LibreNMS: SQL Injection in ajax_table.php spreads through a covert data stream | librenms | 9.3 | 0.6% | 2026-02-20 | |
| CVE-2026-74820 Unauthenticated SQL Injection via Dynamic Schema ORDER BY Clause | Unauthenticated SQL Injection via Dynamic Schema ORDER BY Clause | ServiceNow | 10.0 | 0.4% | 2026-08-27 |
Frequently Asked Questions
What is CWE-89?→
CWE-89 is the MITRE entry for SQL injection, where input reaches an SQL command without neutralization and is interpreted as SQL.
What is the primary defense against SQL injection?→
MITRE recommends parameterization: prepared statements or parameterized queries that enforce separation between data and code, backed by least-privilege database accounts.
How many exploited vulnerabilities are classified as CWE-89?→
This database lists 40 CVE records mapped to CWE-89 by their CVE Numbering Authority. 33 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 11 to known ransomware campaigns. Examples include CVE-2026-114625, CVE-2026-76461, CVE-2026-9586.
How quickly are CWE-89 vulnerabilities added to the KEV catalog?→
For CWE-89 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 5 days, compared with 15 days for all entries added in that period. These figures are as of November 25, 2026.
Sources
Weakness definitions summarized from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.