Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

SQL injection

SQL injection is an attack where someone sends database commands through an input field, and the application runs them against its database. SQL (Structured Query Language) is the language most databases use to store and fetch data. OWASP describes it as the insertion, or injection, of a SQL query via the input data from the client to the application.

Reviewed by
Brandefense Analyst Team
Published
Updated
Reading Time
6 min read
Dark glass dark glass syringe stuck into a database cylinder with red glowing fluid with red neon lines, cover art for: SQL injection

What Is SQL Injection?

SQL injection is an attack on an application that uses a database. The attacker types database commands into a place where the application expects plain input, such as a form field. If the application is not built safely, it runs those commands against its database.

SQL stands for Structured Query Language. It is the language many databases use to read and change data. OWASP is a nonprofit group focused on application security. It describes a SQL injection attack as the insertion, or injection, of a SQL query via the input data from the client to the application.

How Does SQL Injection Work?

The problem starts when an application builds a database query by joining text typed by a user with its own query text. OWASP calls this string concatenation. The database can then treat the typed text as part of the query.

OWASP gives an example. A user types name’ OR ‘a’=’a into a field. When this is joined into the query, the OR condition makes the filter always true. The query then returns all records, not only the ones the user should see.

What Can an Attacker Read or Change Through the Database?

OWASP says a successful attack can let an attacker read sensitive data from the database and modify data by inserting, updating or deleting it. It can also let them run administration operations on the database. They may recover the content of a file on the database system. In some cases they can issue commands to the operating system. A 2026 example is CVE-2026-114625 in Arista VeloCloud Orchestrator, where any logged-in user could gain operator rights.

A current example is CVE-2026-123488 (also published as CVE-2026-115934), an unauthenticated SQL injection in Craft CMS’s element search endpoint, fixed in 4.18.9 and 5.11.2.

OWASP also lists four areas that are affected. Confidentiality is hit when private data is exposed. Authentication is hit when password checks are bypassed by changing the query logic. Authorization is hit when access control data stored in the database is altered. Integrity is hit when data is changed or deleted.

How Can SQL Injection Be Reduced?

OWASP recommends prepared statements with variable binding, also called parameterized queries. OWASP shows them separating the SQL structure from the data with placeholders.

The OWASP prevention cheat sheet lists other defenses too:

  • Stored procedures, when they are written safely and do not build dynamic SQL inside.
  • Allow-list input validation for parts of a query that cannot use bound values, such as table or column names.
  • Least privilege, which means giving the database account only the permissions the application needs.

The same cheat sheet strongly discourages escaping user input as a main defense. It calls that method fragile compared with the others.

Why Does CISA Still Talk About It?

CISA says SQL injection defects have been documented over the past two decades. It says manufacturers keep shipping products with this defect, which puts many customers at risk. CISA cites research that has called it an “unforgivable” vulnerability since at least 2007, and says SQL vulnerabilities such as CWE-89 are still a prevalent class of vulnerability. A recent example that CISA lists in its KEV catalog is the Metabase SQL injection CVE-2026-72898.

When Did SQL Injection Flaws Reach CISA’s Exploited List?

CISA’s Known Exploited Vulnerabilities (KEV) catalog tags flaws of this class as CWE-89. Most dates below are the days CISA added an entry, with the due date it set. They are a sample, not the full list.

Selected SQL Injection Entries in the KEV Catalog
  1. 2 June 2023Progress MOVEit Transfer, CVE-2023-34362CISA marks known ransomware campaign use. Due date 23 June 2023.
  2. 25 March 2024CISA and FBI publish a SQL injection alertThe same day CISA adds Fortinet FortiClient EMS, CVE-2023-48788.
  3. 14 November 2024Palo Alto Networks Expedition, CVE-2024-9465Added with a due date of 5 December 2024.
  4. 18 July 2025Fortinet FortiWeb, CVE-2025-25257Added with a due date of 8 August 2025.
  5. 22 May 2026Drupal Core, CVE-2026-9082Added with a due date of 27 May 2026.
  6. 21 July 2026WordPress Core, CVE-2026-60137Added with a due date of 4 August 2026.
  7. 23 October 2026Arista VeloCloud Orchestrator, CVE-2026-114625Added with a due date of 26 October 2026.

Is SQL Injection the Same as a Data Breach?

No. SQL injection is a flaw and a method of attack. A data breach is an outcome, where data is exposed to people who should not see it. An injection attack can be one way to reach that outcome, since OWASP says it can be used to read sensitive data.

Is SQL Injection the Same as Remote Code Execution?

Not exactly. SQL injection targets the database through the application. OWASP says that in some cases it can also lead to commands on the operating system. Remote code execution is the broader idea of running code on a system you do not control.

Query-operator injection is a related pattern in NoSQL stores. CVE-2026-125120 shows it in Mongoose, the MongoDB object modeling tool for Node.js.

A current product example is CVE-2026-121898 in Adobe Connect, a critical SQL injection flaw that may allow arbitrary code execution.

A current product example is CVE-2026-121896 in Adobe Connect, a critical SQL injection that may permit arbitrary code execution.

A current product example is CVE-2026-12062 in ManageEngine ADAudit Plus, an authenticated SQL injection affecting builds below 8703.

A current product example is CVE-2026-76981 in ManageEngine ADAudit Plus, an authenticated second-order SQL injection affecting versions below build 8711.

A current product example is CVE-2026-121653 in Ivanti Endpoint Manager Core, an SQL injection that Ivanti says can permit unauthenticated remote code execution.

For a current vendor example, see CVE-2026-76954 in Synology DSM, an Auth API SQL injection with fixed releases for four DSM branches.

The CVE-2026-130706 NocoDB formula SQL injection profile illustrates how a stored formula tree can reach a query builder.

The Apache OFBiz performFind SQL injection profile shows how database-specific escape handling can affect search-query safety.

The Chartbrew CVE-2026-54349 profile shows how public chart variables can expose a connected SQL data source.

The UniFi Access SQL injection profile for CVE-2026-132803 illustrates how network access and low privileges shape a patch decision.

The Dolibarr CVE-2026-133476 profile explains how a Universal Search Filter SQL injection can expose API credentials to a low privilege account.

The Adobe Campaign Classic CVE-2026-105489 profile illustrates an SQL injection issue that requires low privileges and an installed-build check.

Adobe’s CVE-2026-104354 Campaign Classic SQL injection profile illustrates a high-privilege issue affecting ACC v7 builds through 7.4.4 build 9402.

The Adobe Campaign Classic CVE-2026-105779 profile gives a vendor-specific SQL injection example with its affected build and fix.

The UpdraftPlus CVE-2026-121150 profile explains how an SQL injection can arise during a conditional backup restore.

The CVE-2026-111067 UpdraftPlus profile explains a second-order SQL injection path during database restore.

Read the ERPNext November advisory patch comparison for a case where SQL injection exposes active session data.

The Daptin CVE-2026-77367 profile shows how unvalidated entity-list sorting can expose otherwise inaccessible table data.

The CVE-2026-129043 Newsletters profile applies SQL injection triage to a WordPress plugin and its fixed release.

The OTRS Survey SQL injection profile shows how an externally accessible Survey frontend changes the patch decision for a specific SQL injection flaw.

The CVE-2026-134841 pgjdbc SQL injection profile shows how driver parsing can change the meaning of quoted input.

The pgjdbc CVE-2026-134842 profile illustrates how driver quoting and session settings can expose a Java application to SQL injection.

The CVE-2026-135174 Virtualizor OAuth SQL injection profile illustrates how a social-login callback can turn provider-supplied account data into a database lookup flaw.

Broadcom says SDDC Manager CVE-2026-123891 is an SQL injection flaw that may allow authenticated database reads and writes.

The EUSurvey CVE-2026-101869 profile shows how a public-results filter can cross the data-to-query boundary and expose private survey data.

For a current vendor example and response sequence, see the WHMCS shopping cart SQL injection patch playbook.

The CVE-2026-125717 Adobe Campaign Classic profile shows how an SQL injection finding can affect privilege boundaries in an on-premise product.

The DIGIT Core CVE-2026-136706 profile explains how unauthenticated SQL injection can affect database confidentiality and integrity.

The Adobe Campaign Classic SQL injection profile explains how this weakness can bypass a security feature for a low-privileged user.

Also Called

  • SQLi
  • SQL injection attack

Frequently Asked Questions

What is SQL injection?

SQL injection is an attack on an application that uses a database. The attacker types database commands into a place where the application expects plain input, such as a form field, and an unsafe application runs them against its database.

What can an attacker do with SQL injection?

OWASP says a successful attack can read sensitive data, modify data by inserting, updating or deleting it, and run administration operations on the database. In some cases it can also lead to commands on the operating system.

How do you prevent SQL injection?

OWASP recommends prepared statements with variable binding, also called parameterized queries. Other defenses include safely written stored procedures, allow-list input validation, and least privilege for the database account. Escaping input is strongly discouraged as a main defense.

Is SQL injection the same as a data breach?

No. SQL injection is a flaw and a method of attack. A data breach is an outcome where data is exposed to people who should not see it. An injection attack can be one way to reach that outcome.

Sources

  1. SQL Injection, OWASP Foundation1
  2. SQL Injection Prevention - OWASP Cheat Sheet Series, OWASP Foundation2
  3. Known Exploited Vulnerabilities Catalog, CISA3
  4. Secure by Design Alert: Eliminating SQL Injection Vulnerabilities in Software, CISA4
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →