Skip to main content

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
All KEV statistics→
  • 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 patterns
CAPEC-66SQL InjectionStandard · Severity High · Likelihood High
CAPEC-108Command Line Execution through SQL InjectionDetailed · Severity Very High · Likelihood Low
CAPEC-110SQL Injection through SOAP Parameter TamperingDetailed · Severity Very High · Likelihood High
CAPEC-470Expanding Control over the Operating System from the DatabaseDetailed · Severity Very High
CAPEC-7Blind SQL InjectionDetailed · Severity High · Likelihood High
CAPEC-109Object Relational Mapping InjectionDetailed · Severity High · Likelihood Low

CWE-89 Vulnerabilities

40 CVEs
CVECVSS
CVE-2026-114625KEV
Security Advisory 0199
9.4
CVE-2026-76461KEV
Cisco Secure Email Gateway SQL Injection Vulnerability
9.8
CVE-2026-9586KEV
Unauthenticated SQL Injection Leading to Remote Code Execution in Switchvox SMB
9.3
CVE-2026-72898KEV
Metabase SQL injection via password reset endpoint
10.0
CVE-2026-60137KEV
WordPress < 7.0.2 - Facilitated SQL Injection via author__not_in in WP_Query
5.9
CVE-2026-9082KEV
Drupal core - Highly critical - SQL injection - SA-CORE-2026-004
9.8
CVE-2026-42208KEV
LiteLLM: SQL injection in Proxy API key verification
9.3
CVE-2026-21643KEV
Fortinet FortiClient EMS SQL Injection Vulnerability
9.1
CVE-2024-43468KEV
Microsoft Configuration Manager Remote Code Execution Vulnerability
9.8
CVE-2025-57819KEV
FreePBX Affected by Authentication Bypass Leading to SQL Injection and RCE
10.0
CVE-2025-25257KEV
Fortinet FortiWeb SQL Injection Vulnerability
9.6
CVE-2025-25181KEV
Advantive VeraCore SQL Injection Vulnerability
5.8
CVE-2020-29574KEV
CyberoamOS (CROS) SQL Injection Vulnerability
9.8
CVE-2024-9465KEV
Expedition: SQL Injection Leads to Firewall Admin Credential Disclosure
9.2
CVE-2024-9379KEV
Ivanti Cloud Services Appliance (CSA) SQL Injection Vulnerability
6.5
CVE-2024-29824KEV
Ivanti Endpoint Manager (EPM) SQL Injection Vulnerability
9.6
CVE-2024-6670KEV
WhatsUp Gold HasErrors SQL Injection Authentication Bypass Vulnerability
9.8
CVE-2023-48788KEV
Fortinet FortiClient EMS SQL Injection Vulnerability
9.3
CVE-2023-46748KEV
BIG-IP Configuration utility authenticated SQL injection vulnerability
8.8
CVE-2021-44026KEV
Roundcube Webmail SQL Injection Vulnerability
9.8
CVE-2023-34362KEV
Progress MOVEit Transfer SQL Injection Vulnerability
9.8
CVE-2016-2386KEV
SAP NetWeaver SQL Injection Vulnerability
9.8
CVE-2017-18362KEV
Kaseya VSA SQL Injection Vulnerability
9.8
CVE-2018-7841KEV
Schneider Electric U.motion Builder SQL Injection Vulnerability
9.8
CVE-2021-20028KEV
SonicWall Secure Remote Access (SRA) SQL Injection Vulnerability
9.8
CVE-2019-12989KEV
Citrix SD-WAN and NetScaler SQL Injection Vulnerability
9.8
CVE-2020-5722KEV
Grandstream Networks UCM6200 Series SQL Injection Vulnerability
9.8
CVE-2020-17463KEV
Fuel CMS SQL Injection Vulnerability
9.8
CVE-2019-7481KEV
SonicWall SMA100 SQL Injection Vulnerability
7.5
CVE-2021-42258KEV
BQE BillQuick Web Suite SQL Injection Vulnerability
9.8
CVE-2020-12271KEV
Sophos SFOS SQL Injection Vulnerability
10.0
CVE-2021-20016KEV
SonicWall SSLVPN SMA100 SQL Injection Vulnerability
9.8
CVE-2021-27101KEV
Accellion FTA SQL Injection Vulnerability
9.8
CVE-2026-12507
Authenticated remote code execution
9.1
CVE-2026-26980
Ghost has a SQL Injection in its Content API
9.4
CVE-2026-23696
Windmill < 1.603.3 File Ownership Handling SQLi RCE
9.4
CVE-2026-1207
Potential SQL injection via raster lookups on PostGIS
5.4
CVE-2026-20947
Microsoft SharePoint Server Remote Code Execution Vulnerability
8.8
CVE-2026-26988
LibreNMS: SQL Injection in ajax_table.php spreads through a covert data stream
9.3
CVE-2026-74820
Unauthenticated SQL Injection via Dynamic Schema ORDER BY Clause
10.0

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.

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.