Gold Open Source
ExplorePackagesVulnerabilitiesCWEsMCP ServersScan
Login
Gold Open Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security, malware, and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Certified Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
Home/CWEs/CWE-96
Common Weakness Enumeration

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

ShareXLinkedInRedditHN

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.

Abstraction
Base
Related CVEs
0

▪References & documentation

https://cwe.mitre.org/data/definitions/96.htmlNVD CWE listing

▪ How attackers exploit CWE-96

MITRE ATT&CK techniques associated with this weakness class (mapped via MITRE CAPEC). A vulnerability of this type could let an adversary carry out:

T1001Data Obfuscationcommand-and-controlT1027Obfuscated Files or InformationstealthT1036MasqueradingstealthT1070Indicator RemovalstealthT1082System Information DiscoverydiscoveryT1218System Binary Proxy Executionstealth

Step-by-step: how CWE-96 gets exploited

A stage-by-stage walkthrough of the attack, mapped to the real MITRE ATT&CK tactics for this weakness — what the attacker is trying to do, what's at risk (what can be stolen or damaged), and how you defend. Understanding the playbook is how you shut it down.

  1. 1
    Discoverydiscovery

    Map what else is reachable — hosts, services, data stores, and accounts.

    At risk / what's stolen

    Internal topology, service inventory, and data locations the attacker enumerates.

    How you defend

▪ Related CVEs

No CVEs in the Gold index currently reference CWE-96. New matches appear here as the crawler indexes them.
T1221Template Injectionstealth
T1562Impair Defensesstealth
T1564Hide Artifactsstealth

Network segmentation and detection of unusual internal scanning.

  • 2
    Command & controlcommand-and-control

    Keep a remote channel to control the compromised system.

    At risk / what's stolen

    Outbound network paths the attacker uses to receive commands and stage tools.

    How you defend

    Egress filtering, DNS/traffic monitoring, and blocking anomalous outbound connections.

  • This is a defensive, conceptual walkthrough for education — stages reflect MITRE ATT&CK tactics associated with this weakness class, not a working exploit. Not every attack uses every stage.