An injection vulnerability occurs when untrusted input is interpreted as code, query logic, or executable instructions. In practice, this can let an attacker retrieve data, alter backend behaviour, or pivot into privileged systems if input handling is not tightly controlled.
Expanded Definition
An injection vulnerability is a failure in input handling where attacker-controlled data is treated as part of an application’s executable logic rather than as inert content. The risk appears in many forms, including SQL injection, command injection, ldap injection, template injection, and unsafe expression evaluation. The core issue is not the specific parser, but the trust boundary: once untrusted input can influence a query, shell command, or interpreter, the application loses control over what executes.
For security teams, the defining question is whether the application separates data from instructions at every boundary. Modern guidance from the CWE entry for SQL Injection and the OWASP Top 10 treats injection as a broad class of input validation and query construction failures, not a single bug. Definitions vary across vendors, but the operational meaning is consistent: any place where input can reshape execution paths is a potential injection point.
The most common misapplication is assuming parameter validation alone prevents injection, which occurs when applications still concatenate tainted input into queries, commands, or templates after superficial filtering.
Examples and Use Cases
Implementing injection resistance rigorously often introduces development and testing overhead, requiring organisations to weigh rapid feature delivery against stronger parsing, encoding, and query abstraction discipline.
- SQL injection in a web form where user input is concatenated into a database query instead of being passed through parameterised statements.
- Command injection in an admin feature that builds a shell command from a hostname, filename, or ticket reference without strict allowlisting.
- Template injection in a content workflow where user-controlled placeholders are evaluated by a server-side rendering engine.
- LDAP or directory injection in identity-related workflows where search filters are assembled from unsanitised login or profile attributes.
- Deserialisation or expression injection in automation pipelines where uploaded data or workflow rules are parsed as executable instructions.
For practitioners, the useful reference point is not just the exploit itself but the weak design pattern behind it. The CISA cyber threat advisories routinely show how exposed applications become footholds for broader compromise when a single injection flaw is chained into credential theft, lateral movement, or data exfiltration. That is why teams should test both direct input paths and indirect paths such as APIs, file imports, and agent prompts that eventually influence execution.
Why It Matters for Security Teams
Injection vulnerabilities matter because they collapse the separation between user input and system authority. Once that boundary fails, attackers may not need valid credentials, privileged access, or malware to cause harm. They can instead coerce the application into revealing sensitive data, modifying records, or executing commands with the privileges of the backend service. This is especially important in identity-heavy systems, where injection can expose session stores, directory queries, or authentication flows.
Security teams also need to account for modern software patterns that widen the blast radius. API gateways, microservices, and AI-enabled interfaces can all create new injection surfaces if untrusted content is passed into query builders, orchestration layers, or agent tool calls without strict controls. The CIS Controls v8 emphasise secure configuration, controlled application development, and vulnerability management precisely because injection often survives basic perimeter defence. The ENISA Threat Landscape also continues to highlight application-layer abuse as a persistent risk pattern across sectors.
Organisations typically encounter the operational cost of injection only after logs show data access, command execution, or an unexpected downstream compromise, at which point fixing the flaw becomes unavoidable.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5, NIST SP 800-63 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.DS-6 | Injection often causes unauthorised data exposure or alteration through application logic. |
| NIST SP 800-53 Rev 5 | SI-10 | Input validation is the direct control family most associated with injection prevention. |
| OWASP Non-Human Identity Top 10 | Injection can target NHI workflows through secrets, tokens, and automation inputs. | |
| NIST SP 800-63 | AAL2 | Identity systems exposed to injection can undermine authenticated sessions and assurance. |
| NIST AI RMF | AI systems can inherit injection risks through prompts, tools, and generated code paths. |
Identify prompt and tool injection risks in AI workflows and govern them through documented risk controls.