CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

What is CWE-74?

CWE-74 is Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'). The flaw arises when 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. The database currently holds 1,350 vulnerabilities mapped to CWE-74 and none of them are in the CISA Known Exploited Vulnerabilities catalog.

Analyzing data...

OWASP TOP 10:2025 RANK5 — A05:2025 — Injection
Related CVES (365 days)1,350
AbstractionClass
Likelihood of exploitHigh

Vulnerabilities mapped to CWE-74

1,350 vulnerabilities88% increase year over year

No data

No vulnerability data in CISA KEV for CWE-74

Official definition

ByMitre CWE

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.

Characteristics

Modes of introduction

  • Implementation: REALIZATION: This weakness is caused during implementation of an architectural security tactic.

Common consequences

ImpactScopeExplanation
Read Application DataConfidentialityMany injection attacks involve the disclosure of important information -- in terms of both data sensitivity and usefulness in further exploitation.
Bypass Protection MechanismAccess ControlIn some cases, injectable code controls authentication; this may lead to a remote vulnerability.
Alter Execution LogicOtherInjection 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.
OtherIntegrity, OtherData 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.
Hide ActivitiesNon-RepudiationOften the actions performed by injected control code are unlogged.

Risk mitigations

  1. RequirementsProgramming languages and supporting technologies might be chosen which are not subject to these issues.
  2. ImplementationUtilize an appropriate mix of allowlist and denylist parsing to filter control-plane syntax from all input.

Detection methods

MethodApproachEffectiveness
Automated Static AnalysisAutomated 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.)High

Representative vulnerabilities

Sources (2)

CWE™ Program, operated by The MITRE Corporation. Copyright © 2006–2026, The MITRE Corporation. The MITRE Corporation hereby grants you a non-exclusive, royalty-free license to use CWE for research, development, and commercial purposes. CWE Terms of Use.

Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.