CWE-96: Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')

ID CWE-96
Abstraction Base
Structure Simple
Status Draft
Number of CVEs 11
The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before inserting the input into an executable resource, such as a library, configuration file, or template.

Modes of Introduction

Phase Note
Implementation REALIZATION: This weakness is caused during implementation of an architectural security tactic.
Implementation This issue is frequently found in PHP applications that allow users to set configuration variables that are stored within executable PHP files. Technically, this could also be performed in some compiled code (e.g., by byte-patching an executable), although it is highly unlikely.

Applicable Platforms

Type Class Name Prevalence
Language PHP
Language Perl
Language Interpreted

Relationships

View Weakness
# ID View Status # ID Name Abstraction Structure Status
CWE-1000 Research Concepts Draft CWE-94 Improper Control of Generation of Code ('Code Injection') Base Simple Draft

Common Attack Pattern Enumeration and Classification (CAPEC)

The Common Attack Pattern Enumeration and Classification (CAPECâ„¢) effort provides a publicly available catalog of common attack patterns that helps users understand how adversaries exploit weaknesses in applications and other cyber-enabled capabilities.

CAPEC at Mitre.org
# ID Name Weaknesses
CAPEC-35 Leverage Executable Code in Non-Executable Files CWE-96
CAPEC-73 User-Controlled Filename CWE-96
CAPEC-77 Manipulating User-Controlled Variables CWE-96
CAPEC-81 Web Server Logs Tampering CWE-96
CAPEC-85 AJAX Footprinting CWE-96

CVEs Published

CVSS Severity

CVSS Severity - By Year

CVSS Base Score

# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...
Loading...