Abstract
SQL injection was described publicly by 1998. Parameterised queries and direct invocation with separate arguments are standard ways to keep data apart from instructions. Yet on 25 November 2026 CERT-In published an unauthenticated SQL injection CVE for India’s DIGIT e-government platform, a week after the project’s own GitHub advisory, and the same week Juniper reported exploitation of a command execution flaw in Session Smart Conductor. Why does a bug class with a known remedy persist, and what narrows it in a codebase? Injection flaws share a mechanism: external data acquires instruction meaning in an interpreter it reaches. Escaping and filtering try to predict how that interpreter will read the data, and they fail on context, encoding and reuse. Structural APIs keep data in data positions, but they leave gaps for identifiers, sort orders, dynamic SQL, convenience shell calls and option parsing. Google’s self-reported experience and CISA’s 2024 alerts point the same way: safe defaults help, and sink APIs that refuse plain strings, enforced at review and build time, narrow how data can reach the interpreter.
Two advisories in one week
DIGIT: an SQL injection in the identity service
The Register describes DIGIT as “Digital Infrastructure for Governance (Impact and Transformation)”; CERT-In expands it as Digital Infrastructure for Governance, Inclusion & Transformation. It is an open-source platform of shared services, such as authentication and payment collection, on which Indian state and local governments build citizen-facing applications. According to the Register’s report of 27 November 2026, all Indian state and union territory governments and more than 20,000 local government bodies use it, nine other countries, among them Nigeria, Indonesia, Ethiopia and Sri Lanka, have implemented it to some degree, and more than 1,000 deployments are live. The headline figure of two billion people is the Register’s estimate from national populations; the three rounded figures it prints, 1.4 billion for India, 280 million for Indonesia and 240 million for Nigeria, total 1.92 billion. It is an estimate of the population served by governments using the platform, and says nothing about how many people use the affected identity service or how many records are exposed.1
The project disclosed first. GitHub security advisory GHSA-qjf8-6cfm-9r76, published in the egovernments/Digit-Core repository on 19 November without a CVE number and credited to Syed Anas Mohiuddin, describes an “SQL injection class in DIGIT LTS Core services” in the search endpoints of the egov-user and egov-accesscontrol services.2 CERT-In, India’s national CERT acting as numbering authority, published CVE-2026-136706 on 25 November. The record maps the flaw to CWE-89 and describes “improper neutralization of user supplied input while constructing SQL queries and execution in the affected User and Access Control Service components”, exploitable by “an unauthenticated remote attacker” through an API endpoint. It lists DIGIT Core version 2.9 as affected, scores it 9.3 under CVSS 4.0 with high confidentiality, integrity and availability impact and no privileges required, and credits Sarthak Chauhan.3 CERT-In’s note of the same day, CIVN-2026-0570, rates severity “HIGH” and gives the fix as upgrading to version 2.9.3.4 CISA’s enrichment of the record on 25 November recorded exploitation as “none”.3 DIGIT was not in CISA’s Known Exploited Vulnerabilities (KEV) catalogue of 30 November.5
The two records name the same two services but different finders, and neither refers to the other, so treating them as one flaw is a provisional identification. The GitHub advisory is unusually precise about what its reporter did and did not show:
- In
egov-user, a fuzzy name search concatenated the request’snameinto aLIKEliteral “without parameter binding”, while the builder’s other search fields were bound; a sort parameter was concatenated into theORDER BYclause “with no column whitelist”.2 - Against a local build of the service and a database created from the project’s own schema, populated only with synthetic records, a crafted search returned a record belonging to another tenant, including synthetic values in the fields reserved for national identity numbers. The sort parameter produced a response difference that revealed whether an injected condition was true.2
- The
egov-accesscontrolflaw was “confirmed by tracing the full request→SQL chain in source” and not executed.2 - The reporter did not claim password-hash extraction, write access or cross-schema reach, and noted that whether an outsider can reach the endpoint without logging in “depends on each deployment’s gateway configuration”.2
The severity figures therefore measure different things. The reporter proposed a CVSS 3.1 vector for the confidentiality-focused finding that lists high confidentiality impact and low integrity impact, with a score of about 7.1 if low privileges are required and a printed 8.6 if none are; applying FIRST’s CVSS 3.1 formula to that vector with no privileges gives 8.2, so the 8.6 should be read as the reporter’s estimate.26 CERT-In’s 9.3 is a CVSS 4.0 score that also assumes integrity and availability impact and no authentication.3 Exposure in a given deployment depends on whether a gateway enforces login in front of the service, which neither record can settle.
The fix, pull request #1444, was merged on 12 November. Its summary reads “Moves egov-user and egov-accesscontrol query builders from string concatenation to prepared-statement parameter binding” and “Validates user-search sort inputs against the set of sortable eg_user columns”, with unrecognised values falling back to the default order.7 Both halves of that fix recur through this article: bind the values, and allowlist what cannot be bound.
Juniper Session Smart Conductor: a registration identifier that led to command execution
Session Smart Conductor is Juniper’s central management system for its Session Smart Routers. Juniper, now part of Hewlett Packard Enterprise, published CVE-2026-103406 on 28 October 2026 under advisory JSA112183. The record is titled “Session Smart Conductor: An unauthenticated attacker causes arbitrary command execution during key management.” Its description begins “An Improper Neutralization of Special Elements used in an OS Command vulnerability in the AutomatedProvisioner in Juniper Networks Session Smart Conductor allows a remote attacker to execute arbitrary commands as root via a specially crafted salt minion ID.” It maps the flaw to CWE-78, scores it 9.8 under CVSS 3.1, lists Session Smart Conductor releases before 7.0.5, 7.1.x before 7.1.7 and 7.2.x before 7.2.3 as the affected product, gives the source as internal discovery, and states “No available workarounds exist for this issue.”8 Juniper’s portal renders its bulletins with JavaScript, and the archived copy of 30 November returned no text, so the vendor’s wording here comes from the CVE record Juniper published as numbering authority.
SecurityWeek explains that the Salt minion ID is a router’s unique identifier when it registers with the Salt master, which here is the Conductor.9 The record thus ties root command execution on the management system to a value associated with device registration. It does not say which interpreter received the value, how the command was constructed, which network interface accepts the identifier, or who can send it, so the exact code path and the reachability of the vulnerable interface are not known from public sources.
The record now carries the note “At least one instance of malicious exploitation has been reported to the Juniper SIRT.”8 SecurityWeek reported that Juniper updated its advisory on Tuesday (24 November) to flag exploitation, and that the fix had shipped on 28 October with 17 other flaws.9 That is the vendor relaying a report. Separately, CISA’s enrichment of the record, dated 25 November, set exploitation to “active”, and CISA added the CVE to KEV the same day with a due date of 28 November.85 The KEV entry names both Session Smart Conductor and Session Smart Router, while the vendor’s record lists only the Conductor as affected; the public record does not show the router independently to be vulnerable. Who exploited the flaw and how many systems were affected has not been published.
What the pair shows
Neither flaw is exotic. One is a string concatenated into a LIKE clause and an ORDER BY in a Java service whose other fields were bound; the other ties a value presented during device registration to command execution as root on a management server. Both sit in code that handles identity or trust: who a citizen is, which router is enrolling. DIGIT’s fix touched two query builders; the scope of Juniper’s is not public. The question is why code like this is still written and shipped in 2026, more than twenty years after the remedy became standard advice.
One mechanism: data crossing into syntax
An early public description
An early and widely cited public description is an article by “rain.forest.puppy” in Phrack issue 54, dated 25 December 1998. Writing about Microsoft SQL Server 6.5 behind IIS, he explained that because the server “allows batch commands”, text supplied through a web form and placed into a query could append a second statement, with SQL’s comment marker discarding the remainder of the original. He reported, secondhand, that a colleague had told Microsoft and that its answer was “what you’re about to read is not a problem”.10
The same article contains an early lesson about escaping. Microsoft’s .idc query files doubled any single quote in user input, which kept input inside a quoted string literal. That defence held only for quoted values. For a numeric field written into the query without quotes, the input needed no quote character to end the value and add a statement.10 The escaping routine encoded one assumption about where the value would land, and it did not hold everywhere the value could land.
The formal statement
Zhendong Su and Gary Wassermann gave what they called “the first formal definition of command injection attacks in the context of web applications” at POPL in January 2006. Their observation was that “for an attack to succeed, the input that gets propagated into the database query or the output document must change the intended syntactic structure of the query or document.” In a legitimate query, they wrote, “for each substring from input there exists a node in the parse tree whose descendant leaves comprise the entire input substring and no more”, and that node is of a kind the policy permits, such as a literal. An attack is a query that parses but in which some input substring “is not a valid syntactic form” in that tree.11 The definition is about web applications building queries and documents, and its criterion is more specific than input touching several nodes: the input must be exactly one permitted subtree. It also explains why structural APIs work. If input can only ever occupy a permitted subtree, no input can change the rest of the tree.
More generally, the flaws grouped as injection share a looser mechanism: external data acquires instruction meaning in an interpreter or parser it reaches. MITRE’s CWE-74 states it as constructing “a command, data structure, or record using externally-influenced input” without neutralising “special elements that could modify how it is parsed or interpreted”.12 Related entries sit at different levels of abstraction and differ in what the data subverts: SQL (CWE-89), OS commands (CWE-78), commands generally (CWE-77), argument delimiters, where the target is a program’s option parsing (CWE-88), code (CWE-94), template expressions (CWE-1336), LDAP (CWE-90), XPath (CWE-643), data query logic generally (CWE-943) and web page output, which is cross-site scripting (CWE-79).13141516171819202122
SQL: classic, blind and second-order
Halfond, Viegas and Orso’s widely cited 2006 classification gives a historical taxonomy of SQL injection: tautologies that make a WHERE clause true for every row, UNION queries that append a second result set, piggy-backed statements of the 1998 kind, illegal or logically incorrect queries that elicit informative errors, stored procedure attacks, and inference.23 Their inference category has two labels: blind injection, which asks a true-or-false question and observes whether the page changes, and timing attacks, which ask it through a conditional delay.23 PortSwigger’s current definition is narrower and response-based: an injection is blind when the application’s “HTTP responses do not contain the results of the relevant SQL query or the details of any database errors”.24 The DIGIT reporter demonstrated a true/false response difference for the sort parameter under test conditions. The advisory does not report bulk extraction through that parameter.2
Second-order injection defeats reliance on an earlier check. In Halfond’s words, attackers “seed malicious inputs into a system or database to indirectly trigger an SQLIA when that input is used at a later time”.23 PortSwigger notes that it “often occurs in situations where developers are aware of SQL injection vulnerabilities, and so safely handle the initial placement of the input into the database”; later code reads the value back, treats it as trusted, and concatenates it into a new query.25 Steve Christey of MITRE observed in 2007 that for second-order SQL injection “the activation point is in a different process than the trigger point”, which makes it less likely to be found by code analysis or threat modelling.26
Shells and OS commands
An operating system shell is an interpreter with an unusually rich grammar. OWASP’s cheat sheet lists the characters that matter, including &, |, ;, $, >, <, backtick, quotes and parentheses, and shows how input appended to a Windows command line can start a second program.27 The weakness predates the web. CWE-78’s canonical example is CVE-1999-0067, a CGI program that did not neutralise the | character when invoking a phonebook program.14
In C the shell enters through system() and popen(), which take one command string. The POSIX exec family instead replaces the process image with a named program and hands it argument strings directly: execve() takes an array, argv, “of character pointers to null-terminated strings”, while execl() takes the arguments as a variable-length list.28 Invoking a native executable directly with execve() does not route arguments through a shell. POSIX specifies a command-interpreter fallback for execlp() and execvp() on an ENOEXEC condition.28 That protection disappears when the program invoked is itself a shell wrapper or an interpreter given code to evaluate, and on Windows, where batch files are handled by cmd.exe, as discussed below. Python’s subprocess module documents the default: it “will not implicitly choose to call a system shell”, so “all characters, including shell metacharacters, can safely be passed to child processes”, but with shell=True it becomes “the application’s responsibility to ensure that all whitespace and metacharacters are quoted appropriately”.29
Argument injection: no metacharacter required
Direct invocation can bypass shell parsing, and the invoked program still interprets its arguments. Most Unix tools treat an argument beginning with - as an option, so data that starts with a dash can be read as an instruction to the program. CWE-88 describes the failure as not delimiting “the intended arguments, options, or switches within that command string”.16 OWASP’s illustration: escaping shell metacharacters before passing a URL to curl stops a second command, but a value that is itself a curl option still changes what curl does.27
Git has supplied clear real cases. Git 2.14.1, released on 10 August 2017 in coordination with Subversion and Mercurial, fixed CVE-2017-1000117. According to the announcement, an ssh URL could produce an ssh command line with a host name beginning with a dash, which ssh would “instead (mis)treat it as an option”; placed in a repository’s .gitmodules file, such a URL could run a program on the machine of anyone who cloned recursively. The fix forbade host names, port numbers and repository names beginning with a dash.30 A year later CVE-2018-17456 found the pattern again: remote code execution during a recursive clone “if a .gitmodules file has a URL field beginning with a ‘-‘ character”.31
The Poetry package manager’s CVE-2022-36069 shows that argument arrays do not settle the matter. Its record says that “Poetry correctly avoids Command Injection vulnerabilities by passing an array of arguments instead of a command string”, yet a repository URL starting with a dash “is therefore treated as an optional argument instead of a positional one”, which could lead to code execution through options that run executables, with user interaction required.32 The PHP Group describes CVE-2024-4577 in Apache deployments using PHP-CGI on Windows with certain code pages. Windows Best-Fit conversion could cause PHP-CGI to read converted command-line characters as PHP options.33 Its route to code execution is covered in From bug to shell. The defences are specific: put -- before positional arguments where the program honours it, reject leading dashes in values that should never start with one, and know each program’s options. OWASP adds that in curl’s case -- does not stop further URL operands, so exactly one validated URL should be passed and URL globbing disabled.27
Templates, directories and document stores
Server-side template injection is the same distinction between code and data inside a template engine. James Kettle’s PortSwigger research of August 2015 defined it as user input “embedded in a template in an unsafe manner”, as opposed to user data passed to a fixed template as a variable. What an attacker gains depends on the engine and its sandbox, and in many engines extends to code execution on the server.34 Kettle observed that the vulnerability “typically arises through developers intentionally letting users submit or edit templates”, and that it is “extremely easy to mistake for Cross-Site Scripting (XSS), or miss entirely”.34 The structural fix is to pass user data to a fixed template as a variable and never compile it as part of the template.
LDAP filters, XPath expressions and other query languages each have their own entries under the same parent.192021 CWE-943 notes that although the weakness is most commonly associated with SQL injection, many other query languages are also subject to injection, among them HTSQL, LDAP, DQL, XQuery, XPath and NoSQL languages.21 As an illustration of the document-store case, not a sourced incident: an application that copies a JSON request body into a query document can let a client supply an operator object where a plain string was expected, so the injected element is structure, not text.
The same structure in HTML
Cross-site scripting is injection into a document. CWE-79 describes a product that does not neutralise input “before it is placed in output that is used as a web page that is served to other users”.22 The interpreter is the browser, and what makes it harder than SQL is that one page contains several grammars, element content, attribute values, URLs, JavaScript and CSS, each with different escaping rules. Su and Wassermann’s observation covered “the output document” from the start.11 The defences that worked for XSS at Google, contextually auto-escaping templates and typed values for dangerous sinks, are the HTML counterpart of parameter binding and come up again below.
Why validation is the weaker defence
Three different controls
Three controls are often lumped together as validation. Escaping, or output encoding, transforms data so that it is read as data in one specific context of one specific grammar. Denylisting rejects input containing characters or keywords thought dangerous. Positive validation accepts only values from a known set or pattern. The first two depend on predicting how the interpreter will read the string; the third depends on knowing what the value is allowed to be.
Escaping and denylisting model the parser
Escaping and denylisting are a second, partial model of the interpreter’s grammar, maintained by the application developer. The 1998 .idc example shows the commonest failure, a context the model did not cover.10 OWASP lists others for SQL: “SQL escaping rules are not always straightforward”, “different SQL dialects have different rules”, and some databases have configuration “which might affect the escaping behavior (such as MySQL NO_BACKSLASH_ESCAPES)”. It calls manual escaping strongly discouraged.35 CISA and the FBI wrote in March 2024 that input sanitisation techniques “are brittle, difficult to enforce at scale, and frequently can be bypassed”.36
Halfond and colleagues classify alternate encodings as an attack type whose intent is “Evading detection”: the injected text is rewritten, for instance in hexadecimal, Unicode or database character functions, so that a filter looking for quotes or keywords does not recognise it, while the interpreter decodes it back.23 A filter that runs before a decoding step the interpreter later performs is checking the wrong string. Context matters even when the encoding is right: a value escaped for a string literal is not safe as a number or an identifier. Reuse matters too: a check applied when data arrived does not protect a later query that concatenates the stored value, which is the second-order case.25
Where allowlists belong
Positive validation is the right control for the parts of a query or command that cannot be parameterised. OWASP’s SQL guidance is to “use fixed application-owned choices for dynamic table names, column names, sort order (ASC, DESC), etc.”35 For commands it recommends validating the command “against a list of allowed commands” and arguments against an explicit list or a narrow regular expression that excludes metacharacters and whitespace.27 DIGIT’s fix allowlisted sort columns for exactly this reason.7 What validation cannot do well is protect free text that must contain apostrophes and hyphens; CWE-89 gives the example of a last name, where “both the hyphen and apostrophe are legitimate characters”, and recommends a prepared statement instead.13
Structure keeps data in data positions
In the server-side prepared-statement model, the application sends the statement with placeholders and the values separately; the database parses the statement first and binds the values as data afterwards, so nothing in a value can be read as SQL syntax. Some drivers emulate binding on the client, which shifts that guarantee to the driver’s own escaping. The UK National Cyber Security Centre put the principle this way in December 2025: with parameterised queries, “regardless of the input, the database engine can never interpret it as an instruction”.37 CISA’s alert notes that MySQL introduced prepared statements in 2004, in version 4.1.3.36
For commands, the strongest form is no external command at all. OWASP’s first defence is to “avoid calling OS commands directly” and use a library function, such as mkdir() in place of invoking a mkdir command; CISA’s alert gives Python’s os.mkdir() as its example.2738 Where a program must be run, the next best is direct invocation with an argument vector, such as subprocess.run with a list, ProcessBuilder in Java or the exec family in C, combined with validation of each operand, since the vector does not stop a hostile first argument. Java’s single-string Runtime.exec(String) has been deprecated since Java 18; OpenJDK’s documentation calls it “error-prone” and explains that “the command string is broken into tokens using only whitespace characters”, which breaks arguments that contain spaces.39
What a prepared statement does not cover
Placeholders stand for values. They cannot stand for what DIGIT’s sort parameter controlled. OWASP: “Parameter markers represent data values, not table names, column names, or SQL keywords such as ASC and DESC”.35 The gaps are familiar to anyone who reviews query builders:
- Identifiers and sort orders. Table names, column names and
ORDER BYdirection need two separate decisions. Syntax is protected by quoting, as with PostgreSQL’sformat()and its%Ispecifier, or by structural construction.40 Which identifiers a user may choose is an access-control decision; OWASP: “Identifier quoting protects SQL syntax, but does not restrict which tables the application may select.”35 - `LIKE` wildcards. Binding a search term inside
%delimiters prevents injection, but%and_inside the bound term still act as wildcards and change which rows match, although they remain data. The DIGIT reporter’s suggested patch added that these should be escaped if literal matching is wanted.2 - Dynamic SQL inside stored procedures. “Binding procedure arguments protects the call, not dynamic SQL constructed inside the procedure.”35 Halfond and colleagues called the belief that stored procedures make an application invulnerable “a common misconception”.23 PostgreSQL’s PL/pgSQL offers
EXECUTE ... USINGto bind values in dynamic statements.40 - ORM query languages and raw interfaces. Hibernate’s HQL is injectable by concatenation as SQL is, per OWASP.35 Django’s documentation warns, for its raw query interface, “Do not use string formatting on raw queries or quote placeholders in your SQL strings!”41 These two examples show the general risk: an ORM’s raw interface accepts query text, and concatenation into it brings back the original flaw.
Argument vectors have edges too
Two limits keep the command side from being as complete as the SQL side. The first is argument injection. Even when a program receives separate arguments, a value can still be interpreted as an option.32 The joint alert’s mkdir example calls for sanitising the operand before invocation.38 The second is Windows, where a process receives one command-line string and each program splits it. The Rust project disclosed CVE-2024-24576 on 9 April 2024 because cmd.exe, used to run batch files, “has its own argument splitting logic”, and Rust’s escaping for it was “not thorough enough”. Unable to escape correctly in all cases, Rust changed its API to return an error when it cannot escape an argument safely.42 Python’s documentation warns that batch files “may be launched by the operating system in a system shell regardless of the arguments passed to this library”.29
Why it persists
Identifiers and dynamic query builders
The DIGIT code was not a beginner’s concatenation in a login form. It was a query builder that bound most fields and missed one branch and one identifier.2 Search and reporting screens commonly need optional filters and user-selected sort columns, and builders that assemble them by appending text make each field a separate decision, so a reviewer looking at a diff that adds one more clause sees nothing out of place. The reporter recommended sweeping the project’s query builder classes and adding a static analysis rule in CI, because the same String.format-into-SQL idiom appeared in sibling builders.2 That recommendation is the difference between fixing two instances and fixing a class in one codebase.
The shell as convenience: embedded devices
TP-Link’s CVE-2023-1389, added to KEV on 1 May 2023, was a country parameter in the Archer AX21’s web interface that “was not sanitized before being used in a call to popen()”, letting an unauthenticated attacker run commands as root “with a simple POST request”.435 D-Link’s CVE-2024-3273, added on 11 April 2024, was command injection through /cgi-bin/nas_sharing.cgi on four NAS models that were already unsupported when the CVE was assigned.445 Zyxel’s CVE-2023-28771 in its firewalls is named “OS Command Injection” in KEV, while the CVE record describes improper error message handling that allowed “some OS commands” to be executed remotely; the two descriptions of one flaw show how labels can blur what the code did.455 Counting only KEV entries whose vendor field contains TP-Link, D-Link, Zyxel, DrayTek or Tenda, 32 carry CWE-77 or CWE-78.5
These are case reports, not a measurement of how firmware is written. TP-Link’s record identifies a call to popen().43 POSIX provides direct invocation through interfaces that take either a list or a vector of arguments.28 A memory-safe language does not change this. Memory-safe code removes out-of-bounds and use-after-free errors from the safe portion of a program, as discussed in Memory safety, measured, while unsafe and native boundaries need their own controls, and none of it affects a call that hands a formatted string to a shell.
Legacy code
PHP’s original mysql_query() interface was deprecated in PHP 5.5.0 and removed in 7.0.0, with the manual directing users to MySQLi or PDO.46 The TalkTalk breach of October 2015 is a documented case of inherited code. The UK Information Commissioner’s Office found that the attacker exploited vulnerabilities in three web pages TalkTalk had inherited with its 2009 acquisition of Tiscali’s UK business, gaining access to the personal details of 156,959 customers, including bank account numbers and sort codes for 15,656. The ICO’s reasons for its £400,000 fine, its largest at the time, included that TalkTalk “should have known the legacy Tiscali pages existed”, that there had been “two previous attacks on the same vulnerable page”, and that the software was outdated. The attack type, identified on 21 October 2015, was SQL injection.47
Code generators and language models
Hammond Pearce and colleagues tested GitHub Copilot in 2021 on 89 scenarios built around high-risk weaknesses, producing 1,689 programs, and found about 40 percent vulnerable (arXiv 2108.09293, revised 16 December 2021; IEEE Symposium on Security and Privacy 2022).48 The injection results were mixed. In a C scenario asking for code to “safely call ls” on a user-supplied directory, all 21 valid suggestions were vulnerable to OS command injection; for a Python ping endpoint the top suggestion was safe. In one SQL scenario 12 of 25 valid options were injectable, and the authors noted that Copilot did worst on a standalone function, “suggesting patterns where SQL queries are structured carefully when they are definitively used in a web-app handler”.48
Newer measurements come mostly from vendors. Veracode’s October 2025 update, which tested more than 100 models on 80 tasks targeting four weaknesses including SQL injection, put the average security pass rate at about 55 percent. It found newer models “a bit better at avoiding SQL injection” and offered a possible reason, “Perhaps modern training data is less likely to contain these flaws”, while reporting no improvement for the other weaknesses.49 Its July 2025 release said that on the benchmark’s cross-site scripting tasks, models failed to produce secure code in 86 percent of cases.50 These are a commercial scanner vendor’s figures, measured with its own tool. Neither study establishes why models produce injectable code. Commits in the DIGIT fix carry co-author trailers naming an AI model; such trailers are attribution metadata and do not show which parts were generated.7
Safe defaults and their escape hatches
Safe APIs usually keep an unsafe interface for needs the safe one does not meet: raw SQL in an ORM, shell=True for a pipeline, a template compiled from a string.4129 Those interfaces accept text, so the old rules apply wherever they are used. Both CISA and Google describe enforcement in tooling, not documentation, as the control, which is the subject of the final part of this article.3651
The evidence on persistence
The CWE Top 25, 2019 to 2025
MITRE’s annual Top 25 ranks weaknesses by a score combining how many CVE records map to each and their average CVSS severity; its arithmetic and sensitivity to mapping are examined in CVE, CWE and CAPEC. The 2025 list analysed 39,080 CVE records published between 1 June 2024 and 1 June 2025.52 Ranks for the injection family, read from each year’s published list:
| Weakness | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|---|---|
| CWE-79 Cross-site scripting | 2 | 1 | 2 | 2 | 2 | 1 | 1 |
| CWE-89 SQL injection | 6 | 6 | 6 | 3 | 3 | 3 | 2 |
| CWE-78 OS command injection | 11 | 10 | 5 | 6 | 5 | 7 | 9 |
| CWE-77 Command injection | not listed | not listed | 25 | 17 | 16 | 13 | 23 |
| CWE-94 Code injection | 18 | 17 | not listed (28) | 25 | 23 | 11 | 10 |
Sources: the 2019 to 2025 lists.53545556575859 The 2021 page records CWE-94 falling from 17 to 28, just outside the list; the 2020 page mentions CWE-77 among the weaknesses on the cusp.5554
In 2025 cross-site scripting scored 60.38 and SQL injection 28.72, the two highest scores on the list. OS command injection ranked ninth, but in that list’s analysis it was mapped to 20 CVEs in KEV, more than any other weakness in the 2025 Top 25.59 The rankings are relative scores over reported, mapped CVEs, and the method and dataset change between editions; the 2025 methodology describes remapping work with numbering authorities.52 A high rank can coexist with falling absolute incidence. What the published rankings show is persistence: SQL injection and XSS have been in the top six of every edition from 2019 to 2025.
KEV by weakness
KEV lists vulnerabilities CISA has added on evidence of exploitation; it is not a complete record of exploitation. Method: I downloaded the catalogue in JSON on 1 December 2026 (catalogue version 2026.11.30, released 30 November 2026 19:44 UTC, 1,810 entries) and counted entries whose cwes field includes each weakness. An entry with two CWEs counts once under each in the first table; entries with an empty cwes field, 175 of them, are counted under none.5
| Weakness in KEV | Entries |
|---|---|
| CWE-20 Improper input validation | 120 |
| CWE-78 OS command injection | 117 |
| CWE-787 Out-of-bounds write | 106 |
| CWE-94 Code injection | 74 |
| CWE-77 Command injection | 34 |
| CWE-89 SQL injection | 33 |
| CWE-79 Cross-site scripting | 33 |
| CWE-88 Argument injection | 5 |
OS command injection is the most frequently listed specific weakness in the catalogue; only the abstract CWE-20 has more entries. Some injection flaws carry CWE-20 alongside a specific weakness: Palo Alto’s CVE-2024-3400, for example, is mapped to both CWE-20 and CWE-77. Counting distinct entries, 288 carry at least one of CWE-77, 78, 79, 88, 89 or 94, about 16 percent of the catalogue and 18 percent of entries with any CWE; 149 carry one of the command-family weaknesses 77, 78 or 88.5
Catalogue additions by year, from the dateAdded field:
| Year added | All KEV | CWE-78 | CWE-77 | Distinct entries with CWE-77 or 78 | CWE-89 | CWE-94 |
|---|---|---|---|---|---|---|
| 2021 | 311 | 19 | 2 | 21 | 6 | 9 |
| 2022 | 555 | 32 | 6 | 36 | 6 | 23 |
| 2023 | 187 | 14 | 4 | 18 | 3 | 9 |
| 2024 | 186 | 14 | 7 | 21 | 5 | 6 |
| 2025 | 245 | 18 | 7 | 25 | 4 | 6 |
| 2026 (partial, to 30 Nov) | 326 | 20 | 8 | 25 | 9 | 21 |
The 2021 and 2022 rows include the catalogue’s initial loading of older flaws, so they are not comparable with later years. From 2023 onwards, distinct additions carrying CWE-77 or CWE-78 were 18, 21, 25 and 25; in 2026 three entries carry both labels. These are counts of labelled catalogue additions. The feed does not identify the source of each mapping or measure exploitation outside the catalogue.5
Costly cases
The 2009 federal indictment of Albert Gonzalez alleged that on or about 26 December 2007 Heartland Payment Systems “was the victim of a SQL Injection Attack on its corporate computer network that resulted in malware being placed on its payment processing system and the theft of more than approximately 130 million credit and debit card numbers”; it also alleged attacks on 7-Eleven from about August 2007 and on a company related to Hannaford, where about 4.2 million card numbers were taken.60 As alleged, the SQL injection was the entry point and the theft followed from malware placed afterwards.
MOVEit Transfer in 2023 is a recent case of mass exploitation. CVE-2023-34362 was an unauthenticated SQL injection in Progress Software’s managed file transfer product, “exploited in the wild in May and June 2023”.61 The FBI and CISA wrote that “according to open source information”, from 27 May 2023 the CL0P group, also tracked as TA505, exploited it as a zero-day, and that internet-facing servers were infected with a web shell named LEMURLOOT, initially observed as human2.aspx, used to steal data from the underlying databases.62 CISA’s March 2024 alert, written in response, says the campaign impacted “thousands of organizations”.36 KEV records it as known to be used in ransomware campaigns.5
Narrowing the class
What CISA and the FBI asked of manufacturers
The joint Secure by Design alert on SQL injection, published on 25 March 2024, urges senior executives at software manufacturers “to mount a formal review of their code to determine its susceptibility to SQLi compromises” and encourages “all technology customers to ask their vendors whether they have conducted such a review”. It names parameterised queries with prepared statements as the control, to be enforced “via, for instance, development libraries that make the secure route the default one for developers and checks at the time of pull requests”. It asks manufacturers to supply “an accurate CWE” in their CVE records, to treat eliminating classes of vulnerability as a business goal, and to publish a secure by design roadmap.36 It cites Christey’s 2007 “Unforgivable Vulnerabilities” paper, whose list of obvious attacks includes SQL injection “using ‘ in the” user name or password of a login routine and in numeric fields.26
The alert on OS command injection followed on 10 July 2024, prompted by exploited flaws in network edge devices: Cisco NX-OS (CVE-2024-20399), Palo Alto PAN-OS (CVE-2024-3400) and Ivanti Connect Secure (CVE-2024-21887). It urges CEOs to ask technical leaders to “analyze past occurrences of this class of defect and develop a plan to eliminate them in the future”. Its development advice includes two imperatives: “Whenever possible, use built-in library functions that separate commands from their arguments instead of constructing raw strings that are fed into a general-purpose system command.” and “Use input parameterization to keep data separate from commands; validate and sanitize all user-supplied input.” It suggests rules “at time of pull requests to disallow risky command invocation, such as, banning os.system, subprocess.run when supplied with a string (as opposed to an array), and subprocess.run when supplied with the shell=True argument”.38
The OS command alert does not discuss argument injection, although its own mkdir example depends on sanitising values that begin with a dash.38
Google’s safe coding approach
The most detailed public account of reducing injection in a large codebase is Christoph Kern’s “Developer Ecosystems for Software Safety”, published in ACM Queue in early 2024. Google changed the APIs that accept SQL so that they “expect values of type TrustedSqlString and do not accept queries represented as simple Strings”. Values of that type can only be built from “query snippets of known, trustworthy provenance such as trusted configuration files or literal strings that are part of the program itself”; the builder “simply has no append method that accepts arbitrary String-typed values”, so dynamic data enters through parameter binding. Kern writes that constraining injection sinks through such types “achieves a high degree of confidence that any program accepted by compile- and runtime type checks is free of injection vulnerabilities”.51
The outcomes Kern reports are Google’s own. Ten years earlier Google “tended to encounter tens of XSS vulnerabilities per year for each large, complex web application like Gmail”; with safe types built into its web frameworks, the residual rate “across all frameworks-based applications is in the low single digits”, the remainder coming partly from older components “exempted from enforcement on a ‘legacy’ basis”, and “SQL injection is essentially a nonissue in the Google internal codebase”.51 Two features of the approach matter for anyone copying it: the unsafe form cannot be written against the governed sinks, so no reviewer has to notice it; and exceptions exist but are explicit, so they can be counted. How exceptions are approved is not detailed in the article; the advice below on approving and tracking them is this article’s recommendation.
Static analysis and taint tracking
Where types cannot be changed, static analysis approximates the rule. Taint tracking follows untrusted data from sources to dangerous sinks; CodeQL’s documentation explains that it adds edges for values “derived from another, for instance through a string manipulating operation”, beyond plain data flow.63 Semgrep’s taint mode reports “a finding whenever tainted data reaches a vulnerable function, called a sink”, unless the data passes through a declared sanitiser; its propagators “only work intraprocedurally”, and interprocedural taint analysis is a Semgrep Pro feature.64
Syntax rules and taint rules check different things. A syntax rule, such as a ban on shell=True or on a concatenated string passed to an execute call, flags a construct wherever it appears, whatever the data’s origin, and gives a developer a plain reason for a failed check. A taint rule flags flows from configured sources to configured sinks, so its findings depend on how sources, sinks and sanitisers are modelled, and data that leaves through a database and returns, the second-order case, is a source only if modelled as one. The DIGIT reporter recommended auditing query builders and adding a Semgrep SQL injection rule in CI.2
Web application firewalls
A WAF rule in front of an injectable endpoint is a compensating control for the period between disclosure and patch, effective only for protocols it parses and request paths known to be vulnerable. Like escaping, it models the interpreter from outside. The evidence on how far such rules hold is reviewed in Protected but not patched.
Trade-offs and open questions
What safe defaults explain. The available evidence does not separate the contribution of ORMs and framework defaults from that of enforced sink types. Kern attributes Google’s results to safe coding practices that include typed sink APIs and compile- and runtime checks.51 The Top 25 counts CVEs without saying which code produced them, and an ORM’s raw interface remains a sink.3541 Whether defaults without enforcement would have produced similar results is an evidentiary question the public data cannot answer.
Where validation fits. The guidance converges more than it differs. CISA’s SQL alert treats sanitisation as brittle and names parameterisation as the control; its command alert pairs parameterisation with validating and sanitising input; OWASP layers allowlist validation on top of parameterisation for commands.363827 Read together, validation is the primary control for identifiers and option-like values that cannot be bound, and a secondary one for free text.
Shell-out versus library calls. OWASP and CISA both put library calls first and argument vectors with validation second.2738 The design trade-off is that every external program brings its own option parser, which is what Poetry’s flaw, Git’s dash-related fixes and Rust’s Windows problem exposed.32303142
Where the analogy with prompt injection stops
Prompt injection was named after SQL injection, and the comparison is tempting: untrusted text in the same channel as instructions. The NCSC’s Dave Chismon argued on 8 December 2025 that the analogy fails at the remedy. Parameterised queries enforce a separation the database supports, whereas inside a language model “there’s no distinction made between ‘data’ or ‘instructions’; there is only ever ‘next token’”. He proposed treating models as an “inherently confusable deputy” whose permissions must be limited.37 The NCSC thus identifies no native boundary inside an LLM equivalent to a bound parameter. The defences discussed in The confused deputy at scale limit what a misled model can do.
What to do
For an engineering lead
- Inventory the sinks. List every database execute call, raw ORM query, dynamic SQL inside stored procedures,
system(),popen(),shell=Trueand single-string process call, and record which take request or stored data. - Make the unsafe forms fail review. Ban string concatenation or formatting into execute calls,
os.system,subprocesscalls with a string orshell=True,Runtime.exec(String), and Csystem()andpopen()with formatted strings, by rule at pull request time, as CISA’s alerts suggest.3836 - Route what remains through a few reviewed functions. This article’s recommendation, following the pattern Kern describes: each remaining raw interface goes through a small set of wrappers, every exception has a named owner, and the count of exceptions is tracked.
- Allowlist every identifier. Sort columns, sort directions, table names and filter fields come from a fixed map in code, as in DIGIT’s fix; quoting protects syntax, and a separate decision governs which identifiers a user may select.735
- Bind stored data when it is reused, which closes second-order injection.25
- Guard option parsing. Insert
--before positional arguments where supported, reject leading dashes in URLs, host names, file names and repository names, and prefer a library to an external program.2730 - Write defensive regression tests. The DIGIT reporter proposed checking that search inputs cannot alter query structure.2 Also test that only allowlisted sort choices are accepted, command operands stay in their intended argument positions, and searches respect tenant boundaries.
- Apply the same review rules to generated code.4849
- Run database and process accounts with least privilege, so that a missed injection reaches less.3527
For a buyer
CISA and the FBI recommend that customers ask whether a vendor has formally reviewed its code for SQL injection.36 The further questions below are this article’s, derived from the alerts:
- When was the product last reviewed for SQL and OS command injection, and by whom?
- Which sinks are governed by enforced rules at code review, which exceptions remain, and who owns them?
- How many CVEs mapped to CWE-77, 78, 88 or 89 has the product had in the last five years, and what was done about the class after each? Do those records carry accurate CWE mappings?36
- For appliances: which management functions invoke a shell or external program, and with what privileges?
For a vulnerability manager
Injection CVEs vary in urgency even at the same base score. Three questions help sort them:
- What authentication is needed in this deployment? CERT-In describes the DIGIT flaw as unauthenticated. The GitHub reporter says unauthenticated exposure depends on the deployment’s gateway configuration.32
- Which interface is reachable, and from where? Reachability changes exposure without changing the vendor’s base score. Juniper’s record does not identify the interface that accepts the identifier and lists no workaround.8 For the TP-Link and D-Link cases, check who can reach the affected web interface.4344
- Is it in KEV, and what does the vendor say about exploitation? Juniper’s flaw went from fix to a vendor exploitation note in under four weeks and was given a three-day deadline.859
Where a fix cannot be applied at once, restrict reach to the vulnerable interface, consider a WAF rule for known vulnerable paths, and, where an advisory reports post-exploitation persistence as AA23-158A did for MOVEit, look for the reported web shells and indicators after patching.62
Conclusion
Injection persists because the remedy is structural and many sinks still accept strings. The cases share a mechanism: an interpreter or parser treats external data as instructions. Escaping and filtering try to predict how the interpreter will read it and fail where context, encoding or reuse change that reading; parameter binding and argument vectors keep values in data positions, and they leave identifiers, sort orders, dynamic SQL, raw ORM interfaces, option parsing and Windows command lines to allowlists and care. The November 2026 cases fit the pattern. DIGIT’s builder, if the GitHub advisory and the CVE do describe the same flaw, bound every field but one and concatenated its sort column. Juniper’s record ties root command execution to a device registration identifier, with the code path unpublished. The published rankings show SQL injection and XSS near the top of every edition from 2019 to 2025, and OS command injection is the most frequently listed specific weakness in KEV. What narrows the class in a codebase, on Google’s self-reported experience and CISA’s recommendations, is enforcement at the sink: APIs that refuse plain strings where they can, rules that fail review where they cannot, a short list of owned exceptions, and allowlists for whatever cannot be bound.
Footnotes
- Simon Sharwood, “Free e-government platform that serves two billion people in ten countries has critical SQL injection bug”, The Register, 27 November 2026. https://www.theregister.com/security/2026/11/27/free-e-government-platform-that-serves-two-billion-people-in-ten-countries-has-critical-sql-injection-bug/5312449 (opens in a new tab) ↩
- GHSA-qjf8-6cfm-9r76, “SQL injection class in DIGIT LTS Core services, egov-user _search ... and egov-accesscontrol _search”, egovernments/Digit-Core security advisory, published 19 November 2026. https://github.com/egovernments/Digit-Core/security/advisories/GHSA-qjf8-6cfm-9r76 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13
- CVE-2026-136706, SQL Injection Vulnerability in DIGIT Platform, CVE record (CNA: CERT-In; with CISA ADP enrichment), published 25 November 2026, read via the CVE Services API. https://cveawg.mitre.org/api/cve/CVE-2026-136706 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- CERT-In Vulnerability Note CIVN-2026-0570, SQL Injection Vulnerability in DIGIT Platform, Indian Computer Emergency Response Team, 25 November 2026. https://www.cert-in.org.in/s2cMainServlet?pageid=PUBVLNOTES01&VLCODE=CIVN-2026-0570 (opens in a new tab) ↩
- Known Exploited Vulnerabilities Catalog, JSON feed, CISA, catalogue version 2026.11.30, downloaded 1 December 2026; counts by the author. https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
- Common Vulnerability Scoring System v3.1: Specification Document, FIRST, section 7 (equations); score computed by the author for the reporter’s vector with PR:N. https://www.first.org/cvss/v3.1/specification-document (opens in a new tab) ↩
- “refactor(core-services): standardize query builders on bound JDBC parameters”, egovernments/Digit-Core pull request #1444, merged 12 November 2026 (with the v2.9.3 tag commit of the same day). https://github.com/egovernments/Digit-Core/pull/1444 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- CVE-2026-103406, “Session Smart Conductor: An unauthenticated attacker causes arbitrary command execution during key management”, CVE record (CNA: Juniper Networks, advisory JSA112183; with CISA ADP enrichment), published 28 October 2026, updated 1 December 2026, read via the CVE Services API. https://cveawg.mitre.org/api/cve/CVE-2026-103406 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Ionut Arghire, “Critical Juniper Session Smart Conductor Flaw Exploited in Attacks”, SecurityWeek, 26 November 2026. https://www.securityweek.com/critical-juniper-session-smart-conductor-flaw-exploited-in-attacks/ (opens in a new tab) ↩1 ↩2 ↩3
- rain.forest.puppy, “NT Web Technology Vulnerabilities”, Phrack Magazine volume 8, issue 54, article 8, 25 December 1998. https://phrack.org/issues/54/nt-web-technology-vulnerabilities.html (opens in a new tab) ↩1 ↩2 ↩3
- Zhendong Su and Gary Wassermann, “The Essence of Command Injection Attacks in Web Applications”, POPL 2006, January 2006 (author copy). https://www.cs.ucdavis.edu/~su/publications/popl06.pdf (opens in a new tab) ↩1 ↩2
- CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component (‘Injection’), MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/74.html (opens in a new tab) ↩
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’), MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/89.html (opens in a new tab) ↩1 ↩2
- CWE-78: Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’), MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/78.html (opens in a new tab) ↩1 ↩2
- CWE-77: Improper Neutralization of Special Elements used in a Command (‘Command Injection’), MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/77.html (opens in a new tab) ↩
- CWE-88: Improper Neutralization of Argument Delimiters in a Command (‘Argument Injection’), MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/88.html (opens in a new tab) ↩1 ↩2
- CWE-94: Improper Control of Generation of Code (‘Code Injection’), MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/94.html (opens in a new tab) ↩
- CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine, MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/1336.html (opens in a new tab) ↩
- CWE-90: Improper Neutralization of Special Elements used in an LDAP Query (‘LDAP Injection’), MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/90.html (opens in a new tab) ↩1 ↩2
- CWE-643: Improper Neutralization of Data within XPath Expressions (‘XPath Injection’), MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/643.html (opens in a new tab) ↩1 ↩2
- CWE-943: Improper Neutralization of Special Elements in Data Query Logic, MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/943.html (opens in a new tab) ↩1 ↩2 ↩3
- CWE-79: Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’), MITRE, accessed 1 December 2026. https://cwe.mitre.org/data/definitions/79.html (opens in a new tab) ↩1 ↩2
- William G.J. Halfond, Jeremy Viegas and Alessandro Orso, “A Classification of SQL Injection Attacks and Countermeasures”, IEEE International Symposium on Secure Software Engineering, 2006 (Wayback Machine copy of the authors’ PDF). http://web.archive.org/web/2015/http://www.cc.gatech.edu/fac/Alex.Orso/papers/halfond.viegas.orso.ISSSE06.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- “Blind SQL injection”, PortSwigger Web Security Academy, accessed 1 December 2026. https://portswigger.net/web-security/sql-injection/blind (opens in a new tab) ↩
- “SQL injection”, including “Second-order SQL injection”, PortSwigger Web Security Academy, accessed 1 December 2026. https://portswigger.net/web-security/sql-injection (opens in a new tab) ↩1 ↩2 ↩3
- Steve Christey, “Unforgivable Vulnerabilities”, MITRE, 2 August 2007. https://cwe.mitre.org/documents/unforgivable_vulns/unforgivable.pdf (opens in a new tab) ↩1 ↩2
- OS Command Injection Defense Cheat Sheet, OWASP Cheat Sheet Series, accessed 1 December 2026. https://cheatsheetseries.owasp.org/cheatsheets/OS_Command_Injection_Defense_Cheat_Sheet.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- exec, The Open Group Base Specifications Issue 8 (POSIX.1-2024), accessed 1 December 2026. https://pubs.opengroup.org/onlinepubs/9799919799/functions/exec.html (opens in a new tab) ↩1 ↩2 ↩3
- subprocess: Subprocess management, “Security Considerations”, Python 3 documentation, accessed 1 December 2026. https://docs.python.org/3/library/subprocess.html (opens in a new tab) ↩1 ↩2 ↩3
- Junio C Hamano, “[ANNOUNCE] Git v2.14.1, v2.13.5, and others”, mailing list announcement (LKML archive copy), 10 August 2017. https://lkml.iu.edu/hypermail/linux/kernel/1708.1/03059.html (opens in a new tab) ↩1 ↩2 ↩3
- CVE-2018-17456, Git recursive clone with .gitmodules URL beginning with ‘-‘, CVE record, published 6 October 2018, read via the CVE Services API. https://cveawg.mitre.org/api/cve/CVE-2018-17456 (opens in a new tab) ↩1 ↩2
- CVE-2022-36069, “Poetry Argument Injection vulnerability can lead to local Code Execution”, CVE record, published 7 September 2022, read via the CVE Services API. https://cveawg.mitre.org/api/cve/CVE-2022-36069 (opens in a new tab) ↩1 ↩2 ↩3
- CVE-2024-4577, PHP-CGI argument handling on Windows, CVE record (CNA: PHP Group), published 9 June 2024, read via the CVE Services API. https://cveawg.mitre.org/api/cve/CVE-2024-4577 (opens in a new tab) ↩
- James Kettle, “Server-Side Template Injection”, PortSwigger Research, 5 August 2015. https://portswigger.net/research/server-side-template-injection (opens in a new tab) ↩1 ↩2
- SQL Injection Prevention Cheat Sheet, OWASP Cheat Sheet Series, accessed 1 December 2026. https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- CISA and FBI, “Secure by Design Alert: Eliminating SQL Injection Vulnerabilities in Software”, March 2024 (web page dated 25 March 2024). https://www.cisa.gov/sites/default/files/2024-03/SbD%20Alert%20-%20Eliminating%20SQL%20Injection%20Vulnerabilities%20in%20Software_508c.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- Dave Chismon, “Prompt injection is not SQL injection (it may be worse)”, UK National Cyber Security Centre, 8 December 2025. https://www.ncsc.gov.uk/blog-post/prompt-injection-is-not-sql-injection (opens in a new tab) ↩1 ↩2
- CISA and FBI, “Secure by Design Alert: Eliminating OS Command Injection Vulnerabilities”, 10 July 2024. https://www.cisa.gov/resources-tools/resources/secure-design-alert-eliminating-os-command-injection-vulnerabilities (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- java.lang.Runtime source and Javadoc for exec(String), OpenJDK jdk repository (master), accessed 1 December 2026. https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/Runtime.java (opens in a new tab) ↩
- PL/pgSQL Basic Statements, “Executing Dynamic Commands”, PostgreSQL documentation (current), accessed 1 December 2026. https://www.postgresql.org/docs/current/plpgsql-statements.html (opens in a new tab) ↩1 ↩2
- Performing raw SQL queries, Django 5.1 documentation, accessed 1 December 2026. https://docs.djangoproject.com/en/5.1/topics/db/sql/ (opens in a new tab) ↩1 ↩2 ↩3
- Rust Security Response WG, “Security advisory for the standard library (CVE-2024-24576)”, Rust Blog, 9 April 2024. https://blog.rust-lang.org/2024/04/09/cve-2024-24576/ (opens in a new tab) ↩1 ↩2
- CVE-2023-1389, TP-Link Archer AX21 command injection, CVE record, published 15 March 2023, read via the CVE Services API. https://cveawg.mitre.org/api/cve/CVE-2023-1389 (opens in a new tab) ↩1 ↩2 ↩3
- CVE-2024-3273, D-Link DNS-320L/DNS-325/DNS-327L/DNS-340L nas_sharing.cgi command injection, CVE record, published 4 April 2024, read via the CVE Services API. https://cveawg.mitre.org/api/cve/CVE-2024-3273 (opens in a new tab) ↩1 ↩2
- CVE-2023-28771, Zyxel firewalls, CVE record, published 25 April 2023, read via the CVE Services API. https://cveawg.mitre.org/api/cve/CVE-2023-28771 (opens in a new tab) ↩
- mysql_query, PHP Manual, accessed 1 December 2026. https://www.php.net/manual/en/function.mysql-query.php (opens in a new tab) ↩
- “TalkTalk cyber attack: how the ICO’s investigation unfolded”, Information Commissioner’s Office, accessed 1 December 2026. https://ico.org.uk/about-the-ico/media-centre/talktalk-cyber-attack-how-the-ico-investigation-unfolded/ (opens in a new tab) ↩
- Hammond Pearce, Baleegh Ahmad, Benjamin Tan, Brendan Dolan-Gavitt and Ramesh Karri, “Asleep at the Keyboard? Assessing the Security of GitHub Copilot’s Code Contributions”, arXiv 2108.09293 (v1 20 August 2021, v3 16 December 2021); IEEE Symposium on Security and Privacy 2022. https://arxiv.org/abs/2108.09293 (opens in a new tab) ↩1 ↩2 ↩3
- “October 2025 Update: GenAI Code Security Report”, Veracode, October 2025. https://www.veracode.com/wp-content/uploads/October-2025-GenAI-Code-Security-Report-Update.pdf (opens in a new tab) ↩1 ↩2
- “AI-Generated Code Poses Major Security Risks in Nearly Half of All Development Tasks, Veracode Research Reveals”, Veracode press release, 30 July 2025. https://www.veracode.com/press-release/ai-generated-code-poses-major-security-risks-in-nearly-half-of-all-development-tasks-veracode-research-reveals/ (opens in a new tab) ↩
- Christoph Kern, “Developer Ecosystems for Software Safety”, ACM Queue 22 (January-February 2024), Google-hosted PDF. https://storage.googleapis.com/gweb-research2023-media/pubtools/7639.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- 2025 CWE Top 25 Methodology, MITRE, accessed 1 December 2026. https://cwe.mitre.org/top25/archive/2025/2025_methodology.html (opens in a new tab) ↩1 ↩2
- 2019 CWE Top 25 Most Dangerous Software Errors, MITRE. https://cwe.mitre.org/top25/archive/2019/2019_cwe_top25.html (opens in a new tab) ↩
- 2020 CWE Top 25 Most Dangerous Software Weaknesses, MITRE. https://cwe.mitre.org/top25/archive/2020/2020_cwe_top25.html (opens in a new tab) ↩1 ↩2
- 2021 CWE Top 25 Most Dangerous Software Weaknesses, MITRE. https://cwe.mitre.org/top25/archive/2021/2021_cwe_top25.html (opens in a new tab) ↩1 ↩2
- 2022 CWE Top 25 Most Dangerous Software Weaknesses, MITRE. https://cwe.mitre.org/top25/archive/2022/2022_cwe_top25.html (opens in a new tab) ↩
- 2023 CWE Top 25 Most Dangerous Software Weaknesses, MITRE. https://cwe.mitre.org/top25/archive/2023/2023_top25_list.html (opens in a new tab) ↩
- 2024 CWE Top 25 Most Dangerous Software Weaknesses, MITRE. https://cwe.mitre.org/top25/archive/2024/2024_top25_list.html (opens in a new tab) ↩
- 2025 CWE Top 25 Most Dangerous Software Weaknesses, MITRE. https://cwe.mitre.org/top25/archive/2025/2025_cwe_top25.html (opens in a new tab) ↩1 ↩2
- United States v. Albert Gonzalez et al., indictment, US District Court for the District of New Jersey, 2009. https://justice.gov/archive/usao/nj/Press/files/pdffiles/2009/GonzIndictment.pdf (opens in a new tab) ↩
- CVE-2023-34362, Progress MOVEit Transfer SQL injection, CVE record, published 2 June 2023, read via the CVE Services API. https://cveawg.mitre.org/api/cve/CVE-2023-34362 (opens in a new tab) ↩
- FBI and CISA, “#StopRansomware: CL0P Ransomware Gang Exploits CVE-2023-34362 MOVEit Vulnerability”, Cybersecurity Advisory AA23-158A, June 2023. https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-158a (opens in a new tab) ↩1 ↩2
- “About data flow analysis”, CodeQL documentation, GitHub, accessed 1 December 2026. https://codeql.github.com/docs/writing-codeql-queries/about-data-flow-analysis/ (opens in a new tab) ↩
- “Taint analysis overview”, Semgrep documentation, accessed 1 December 2026. https://semgrep.dev/docs/writing-rules/data-flow/taint-mode/overview (opens in a new tab) ↩

SecSIG