CWEweakness

CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component

High Official page ↗
Alternate terms
Injection
Abstraction
Class
Structure
Simple
Status
Incomplete
Likelihood of exploit
High
Languages
Not Language-Specific
CWE version
5.0

Description

The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

Common consequences

• Confidentiality: Read Application Data — Many injection attacks involve the disclosure of important information -- in terms of both data sensitivity and usefulness in further exploitation. • Access Control: Bypass Protection Mechanism — In some cases, injectable code controls authentication; this may lead to a remote vulnerability. • Other: Alter Execution Logic — Injection attacks are characterized by the ability to significantly change the flow of a given process, and in some cases, to the execution of arbitrary code. • Integrity, Other: Other — Data injection attacks lead to loss of data integrity in nearly all cases as the control-plane data injected is always incidental to data recall or writing. • Non-Repudiation: Hide Activities — Often the actions performed by injected control code are unlogged.

Potential mitigations

• [Requirements] Programming languages and supporting technologies might be chosen which are not subject to these issues. • [Implementation] Utilize an appropriate mix of allowlist and denylist parsing to filter control-plane syntax from all input.

Detection methods

• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Observed examples

• CVE-2024-5184: ML-based email analysis product uses an API service that allows a malicious user to inject a direct prompt and take over the service logic, forcing it to leak the standard hard-coded system prompts and/or execute unwanted prompts to leak sensitive data. • CVE-2022-36069: Python-based dependency management tool avoids OS command injection when generating Git commands but allows injection of optional arguments with input beginning with a dash (CWE-88), potentially allowing for code execution. • CVE-1999-0067: Canonical example of OS command injection. CGI program does not neutralize "|" metacharacter when invoking a phonebook program. • CVE-2022-1509: injection of sed script syntax ("sed injection") • CVE-2020-9054: Chain: improper input validation (CWE-20) in username parameter, leading to OS command injection (CWE-78), as exploited in the wild per CISA KEV. • CVE-2021-44228: Product does not neutralize ${xyz} style expressions, allowing remote code execution. (log4shell vulnerability in log4j)

Related

Attack pattern · CAPEC (37)

  • CAPEC-10 Buffer Overflow via Environment Variables attack pattern
  • CAPEC-101 Server Side Include (SSI) Injection attack pattern
  • CAPEC-105 HTTP Request Splitting attack pattern
  • CAPEC-108 Command Line Execution through SQL Injection attack pattern
  • CAPEC-120 Double Encoding attack pattern
  • CAPEC-13 Subverting Environment Variable Values attack pattern
  • CAPEC-135 Format String Injection attack pattern
  • CAPEC-14 Client-side Injection-induced Buffer Overflow attack pattern
  • CAPEC-24 Filter Failure through Buffer Overflow attack pattern
  • CAPEC-250 XML Injection attack pattern
  • CAPEC-267 Leverage Alternate Encoding attack pattern
  • CAPEC-273 HTTP Response Smuggling attack pattern
  • CAPEC-28 Fuzzing attack pattern
  • CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters attack pattern
  • CAPEC-34 HTTP Response Splitting attack pattern
  • CAPEC-42 MIME Conversion attack pattern
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers attack pattern
  • CAPEC-45 Buffer Overflow via Symbolic Links attack pattern
  • CAPEC-46 Overflow Variables and Tags attack pattern
  • CAPEC-47 Buffer Overflow via Parameter Expansion attack pattern
  • CAPEC-51 Poison Web Service Registry attack pattern
  • CAPEC-52 Embedding NULL Bytes attack pattern
  • CAPEC-53 Postfix, Null Terminate, and Backslash attack pattern
  • CAPEC-6 Argument Injection attack pattern
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic attack pattern
  • CAPEC-67 String Format Overflow in syslog() attack pattern
  • CAPEC-7 Blind SQL Injection attack pattern
  • CAPEC-71 Using Unicode Encoding to Bypass Validation Logic attack pattern
  • CAPEC-72 URL Encoding attack pattern
  • CAPEC-76 Manipulating Web Input to File System Calls attack pattern
Show all 37 ›

Observed example · CVE (6)

  • CVE-2024-5184 The EmailGPT service contains a prompt injection vulnerability. vulnerability
  • CVE-2022-36069 Poetry is a dependency manager for Python. vulnerability
  • CVE-2022-1509 Command Injection Vulnerability in GitHub repository hestiacp/hestiacp prior to 1.5.12. vulnerability
  • CVE-2021-44228 Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log… vulnerability
  • CVE-2020-9054 Multiple ZyXEL network-attached storage (NAS) devices running firmware version 5.21 contain a pre-authentication command injection… vulnerability
  • CVE-1999-0067 phf CGI program allows remote command execution through shell metacharacters. vulnerability

Child of · CWE (1)

  • CWE-707 Improper Neutralization weakness

Referenced by CAPEC · weakness (37)

  • CAPEC-10 Buffer Overflow via Environment Variables attack pattern
  • CAPEC-101 Server Side Include (SSI) Injection attack pattern
  • CAPEC-105 HTTP Request Splitting attack pattern
  • CAPEC-108 Command Line Execution through SQL Injection attack pattern
  • CAPEC-120 Double Encoding attack pattern
  • CAPEC-13 Subverting Environment Variable Values attack pattern
  • CAPEC-135 Format String Injection attack pattern
  • CAPEC-14 Client-side Injection-induced Buffer Overflow attack pattern
  • CAPEC-24 Filter Failure through Buffer Overflow attack pattern
  • CAPEC-250 XML Injection attack pattern
  • CAPEC-267 Leverage Alternate Encoding attack pattern
  • CAPEC-273 HTTP Response Smuggling attack pattern
  • CAPEC-28 Fuzzing attack pattern
  • CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters attack pattern
  • CAPEC-34 HTTP Response Splitting attack pattern
  • CAPEC-42 MIME Conversion attack pattern
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers attack pattern
  • CAPEC-45 Buffer Overflow via Symbolic Links attack pattern
  • CAPEC-46 Overflow Variables and Tags attack pattern
  • CAPEC-47 Buffer Overflow via Parameter Expansion attack pattern
  • CAPEC-51 Poison Web Service Registry attack pattern
  • CAPEC-52 Embedding NULL Bytes attack pattern
  • CAPEC-53 Postfix, Null Terminate, and Backslash attack pattern
  • CAPEC-6 Argument Injection attack pattern
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic attack pattern
  • CAPEC-67 String Format Overflow in syslog() attack pattern
  • CAPEC-7 Blind SQL Injection attack pattern
  • CAPEC-71 Using Unicode Encoding to Bypass Validation Logic attack pattern
  • CAPEC-72 URL Encoding attack pattern
  • CAPEC-76 Manipulating Web Input to File System Calls attack pattern
Show all 37 ›

Referenced by CVE · weakness (5,714)

  • CVE-2026-103400 An Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') vulnerability in the ember service in… vulnerability
  • CVE-2026-103405 An Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') vulnerability in the web server in… vulnerability
  • CVE-2026-106648 The Royal Elementor Addons WordPress plugin before 1.7.1070 does not validate submitted form field values before substituting them into the… vulnerability
  • CVE-2026-118258 i18next-http-backend is a backend layer for i18next that loads translation resources in Node.js, browsers, and Deno. vulnerability
  • CVE-2026-54453 OpenCATS is an open-source applicant tracking system and recruitment CRM for staffing agencies and hiring teams. vulnerability
  • CVE-2026-117513 A vulnerability was determined in oretnom23 php-travel-agency-system. vulnerability
  • CVE-2026-117514 A vulnerability was identified in oretnom23 php-travel-agency-system. vulnerability
  • CVE-2026-117515 A security flaw has been discovered in oretnom23 php-travel-agency-system 4e28b8f84d72420373dd15c3ae32900beb7e0635. vulnerability
  • CVE-2026-117516 A weakness has been identified in oretnom23 php-travel-agency-system. vulnerability
  • CVE-2026-117526 A vulnerability was found in reduxjs redux-devtools 5.0.0. vulnerability
  • CVE-2026-116101 A vulnerability was found in itsourcecode Online Cake Ordering System 1.0. vulnerability
  • CVE-2026-116103 A vulnerability was identified in Sony Neural Network Libraries up to 1.39.0. vulnerability
  • CVE-2026-116104 A security flaw has been discovered in Sony Neural Network Libraries up to 1.39.0. vulnerability
  • CVE-2026-116112 A vulnerability was identified in HashenUdara edoc-doctor-appointment-system up to cc258425b915d1af9e298777ccd26d160493e68d. vulnerability
  • CVE-2026-116231 A security flaw has been discovered in Oray Pugongying X5 Pro 7.6.1. vulnerability
  • CVE-2026-116232 A weakness has been identified in Oray Pugongying X5 Pro 7.6.1. vulnerability
  • CVE-2026-116233 A security vulnerability has been detected in Oray Pugongying X5 Pro 7.6.1. vulnerability
  • CVE-2026-116234 A vulnerability was detected in Oray Pugongying X5 Pro 7.6.1. vulnerability
  • CVE-2026-116235 A flaw has been found in Oray Pugongying X5 Pro 7.6.1. vulnerability
  • CVE-2026-116237 A vulnerability was found in Oray Pugongying X5 Pro 7.6.1. vulnerability
  • CVE-2026-116253 A vulnerability was determined in DedeCMS 5.7.118. vulnerability
  • CVE-2026-116275 A vulnerability was found in AllenAI AllenNLP up to 2.10.1. vulnerability
  • CVE-2026-116504 A vulnerability has been found in TOTOLINK A950RG 4.1.2cu.5268_B20221104. vulnerability
  • CVE-2026-116505 A vulnerability was found in TOTOLINK A950RG 4.1.2cu.5268_B20221104. vulnerability
  • CVE-2026-116506 A vulnerability was determined in TOTOLINK A950RG 4.1.2cu.5268_B20221104. vulnerability
  • CVE-2026-116515 A security vulnerability has been detected in itsourcecode Online Book Store 1.0. vulnerability
  • CVE-2026-115997 A flaw has been found in pig-mesh pig up to 4.1.0. vulnerability
  • CVE-2026-115999 A vulnerability has been found in mansi-k Restaurant_IMS d7ad49f61ab7cc1ec6eb359ac2b5378bdbde0694. vulnerability
  • CVE-2026-116048 A vulnerability was detected in krupalshah EmployeeRecruitmentSystem up to 922ff6d208278282e7c8e36d70d9ae356adec9fe. vulnerability
  • CVE-2026-116049 A flaw has been found in krupalshah EmployeeRecruitmentSystem up to 922ff6d208278282e7c8e36d70d9ae356adec9fe. vulnerability
Show all 5,714 ›

Referenced by CWE · can precede (2)

  • CWE-116 Improper Encoding or Escaping of Output weakness
  • CWE-20 Improper Input Validation weakness

Referenced by CWE · child of (13)

  • CWE-1236 Improper Neutralization of Formula Elements in a CSV File weakness
  • CWE-75 Failure to Sanitize Special Elements into a Different Plane weakness
  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness
  • CWE-88 Improper Neutralization of Argument Delimiters in a Command weakness
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
  • CWE-91 XML Injection weakness
  • CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement weakness
  • CWE-93 Improper Neutralization of CRLF Sequences weakness
  • CWE-94 Improper Control of Generation of Code weakness
  • CWE-943 Improper Neutralization of Special Elements in Data Query Logic weakness
  • CWE-99 Improper Control of Resource Identifiers weakness

Referenced by CWE · has member (1)

  • CWE-1003 Weaknesses for Simplified Mapping of Published Vulnerabilities view

Referenced by OWASP · mapped cwe (2)