GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
GoldOpen Source

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

Explore Gold

  • Explore Everything
  • Packages
  • Gold 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
GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
Home/CWEs/CWE-94
ShareXLinkedInRedditHN
Common Weakness Enumeration

CWE-94: Code Injection

Abstraction
Base
OWASP Top 10
A03:2021 (#3)
Exploit Likelihood
Medium
Related CVEs
87

Description

The product constructs code segments using unneutralized external input.

How to mitigate

  • Never eval external input; use safe templating and sandboxed interpreters.

How attackers exploit CWE-94

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 InformationstealthT1218System Binary Proxy ExecutionstealthT1221Template InjectionstealthT1564Hide Artifactsstealth

Step-by-step: how CWE-94 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
    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.

Related CVEs

HighCVE-2026-87817Security vulnerability in gitpython
HighCVE-2026-44244Security vulnerability in gitpython
HighCVE-2026-44244Security vulnerability in gitpython
HighCVE-2026-87817Security vulnerability in gitpython
HighCVE-2026-4800Security vulnerability in lodash.template
HighCVE-2026-4800Security vulnerability in lodash
HighCVE-2026-44495Security vulnerability in axios
HighCVE-2026-44495Security vulnerability in axios
HighCVE-2026-87817Security vulnerability in gitpython
HighCVE-2026-44244Security vulnerability in gitpython
HighCVE-2026-44495Security vulnerability in axios
MediumCVE-2014-0472Security vulnerability in django
HighCVE-2026-44495Security vulnerability in axios
HighCVE-2026-87817Security vulnerability in gitpython
HighCVE-2026-44244Security vulnerability in gitpython
MediumCVE-2026-41159Security vulnerability in mermaid
CriticalCVE-2023-45311Security vulnerability in fsevents
HighCVE-2026-44495Security vulnerability in axios
HighCVE-2021-23337Security vulnerability in lodash
CriticalCVE-2026-33937Security vulnerability in handlebars
HighCVE-2026-33940Security vulnerability in handlebars
HighCVE-2026-33938Security vulnerability in handlebars
HighCVE-2021-42574Security vulnerability in unicode
HighCVE-2026-40563Security vulnerability in atlas
MediumCVE-2026-41159Security vulnerability in mermaid
HighCVE-2019-16255Security vulnerability in ruby
CriticalCVE-2014-0577Security vulnerability in air
CriticalCVE-2014-0584Security vulnerability in air
CriticalCVE-2010-2161Security vulnerability in air
CriticalCVE-2010-2163Security vulnerability in air
CriticalCVE-2010-2186Security vulnerability in air
CriticalCVE-2013-5331Security vulnerability in air
CriticalCVE-2013-5332Security vulnerability in air
CriticalCVE-2014-0574Security vulnerability in air
CriticalCVE-2014-0585Security vulnerability in air
CriticalCVE-2014-0586Security vulnerability in air
HighCVE-2021-23337Security vulnerability in lodash
LowCVE-2021-23358Security vulnerability in underscore
HighCVE-2021-23337Security vulnerability in lodash
HighCVE-2026-44295Security vulnerability in protobufjs-cli
HighCVE-2026-54271Security vulnerability in protobufjs-cli
MediumCVE-2026-41159Security vulnerability in mermaid
HighCVE-2026-44293Security vulnerability in protobufjs
CriticalCVE-2026-41242Security vulnerability in protobufjs
HighCVE-2026-44291Security vulnerability in protobufjs
HighCVE-2021-23337Security vulnerability in lodash
HighCVE-2021-23337Security vulnerability in lodash-es
HighCVE-2021-23337Security vulnerability in lodash
HighCVE-2021-23337Security vulnerability in lodash
HighCVE-2021-23337Security vulnerability in lodash
HighCVE-2021-23337Security vulnerability in lodash
HighCVE-2026-33943Security vulnerability in happy-dom
HighCVE-2026-33940Security vulnerability in handlebars
HighCVE-2019-20920Security vulnerability in handlebars
CriticalCVE-2026-33937Security vulnerability in handlebars
HighCVE-2026-33938Security vulnerability in handlebars
HighCVE-2026-33940Security vulnerability in handlebars
HighCVE-2019-20920Security vulnerability in handlebars
CriticalCVE-2026-33937Security vulnerability in handlebars
HighCVE-2026-33938Security vulnerability in handlebars
CriticalCVE-2023-45311Security vulnerability in fsevents
CriticalCVE-2023-45311Security vulnerability in fsevents
HighCVE-2025-66457Security vulnerability in elysia
HighCVE-2026-44495Security vulnerability in axios
HighCVE-2026-44495Security vulnerability in axios
HighCVE-2026-44495Security vulnerability in axios
HighCVE-2026-44495Security vulnerability in axios
HighCVE-2026-44495Security vulnerability in axios
CriticalCVE-2019-5413Security vulnerability in morgan
CriticalCVE-2025-23061Security vulnerability in mongoose
CriticalCVE-2025-59059Security vulnerability in ranger
CriticalCVE-2026-55799Security vulnerability in ranger
CriticalCVE-2026-44416Security vulnerability in ranger
HighCVE-2019-5443Security vulnerability in curl
HighCVE-2013-2617Security vulnerability in curl
HighCVE-2017-14198Security vulnerability in Matrix
MediumGHSA-87f9-hvmw-gh4pSecurity vulnerability in mermaid
CriticalCVE-2014-0577Security vulnerability in air
CriticalCVE-2014-0584Security vulnerability in air
CriticalCVE-2010-2161Security vulnerability in air
CriticalCVE-2010-2163Security vulnerability in air
CriticalCVE-2013-5331Security vulnerability in air
CriticalCVE-2013-5332Security vulnerability in air
CriticalCVE-2014-0574Security vulnerability in air
CriticalCVE-2014-0585Security vulnerability in air
CriticalCVE-2014-0586Security vulnerability in air
CriticalCVE-2010-2186Security vulnerability in air

References & documentation

  • https://cwe.mitre.org/data/definitions/94.html
  • NVD CWE listing

Weakness facts

IDCWE-94
AbstractionBase
OWASP Top 10A03:2021 (#3)
Exploit LikelihoodMedium
Related CVEs87

Turn Gold’s intelligence into continuous protection

Safeguard scans your code, containers, and dependencies, tells you what’s exposed, and automates the fixes.

Start free See pricing
GoldOpen Source

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

Explore Gold

  • Explore Everything
  • Packages
  • Gold 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