# What is an Injection Attack?

> An injection attack supplies untrusted input that a software interpreter treats as part of a command, query, or executable expression.

- Canonical URL: https://yellowcube.eu/glossary/injection-attack/
- Publisher: Yellow Cube
- Language: en
- Contact: hello@yellowcube.eu

## Content

The underlying weakness is a failed boundary between instructions and data. It can appear when applications construct commands from requests, imported content, stored records, or information received from another service. Input does not become trustworthy simply because it was stored earlier.

The Open Worldwide Application Security Project (OWASP) places injection at A05:2025 in its released 2025 Top 10; it was A03 in 2021. Affected contexts include Structured Query Language (SQL) statements, operating-system commands, dynamically evaluated code, Lightweight Directory Access Protocol (LDAP) filters, “not only SQL” (NoSQL) queries, and server-side templates.

### Key points

- **Interpreter boundary:** The affected parser and execution context determine which characters, structures, or expressions can change the operation’s meaning.
- **Safer construction:** Interfaces that keep values separate from instructions, fixed command structures, and context-appropriate encoding reduce unsafe interpretation; avoiding an interpreter can remove particular attack paths.
- **Consequence reduction:** Narrow service permissions and restricted downstream access limit what an injected operation can read, change, or execute.
- **Important limitation:** Generic input filtering, escaping, or a web application firewall cannot guarantee protection across different interpreters and nested contexts. Validation supplements safe construction rather than replacing it.

### Related terms

[Structured Query Language (SQL) injection](<https://yellowcube.eu/glossary/structured-query-language-injection/>) · [Cross-site scripting (XSS)](<https://yellowcube.eu/glossary/cross-site-scripting/>) · [Application security](<https://yellowcube.eu/glossary/application-security/>) · [Open Worldwide Application Security Project (OWASP) Top 10](<https://yellowcube.eu/glossary/open-worldwide-application-security-project-top-10/>)

### Sources

[OWASP Top 10:2025 — A05:2025 Injection](https://top10.owasp.org/2025/A05_2025-Injection/) · [MITRE CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component](https://cwe.mitre.org/data/definitions/74.html)

## Let’s Build Smarter Cyber Defenses Together

Partnerships are the foundation of everything we do — built on trust, expertise, and shared success. Whether you’re looking to grow your business, strengthen your cybersecurity offerings, or bring innovative solutions to new markets, Yellow Cube is ready to be your committed, long-term ally.

[Get in touch with Yellow Cube](<mailto:hello@yellowcube.eu?subject=Partnership>)

## Attribution and scope

This Markdown representation is generated from the same approved content records as the canonical HTML page. Cite the canonical URL above when referencing this material. Product and service descriptions are informational; confirm project-specific requirements with Yellow Cube.

