Skip to main content

About CWE-506

The listed impact is execution of unauthorized code or commands, affecting confidentiality, integrity and availability.

MITRE name
Embedded Malicious Code
Abstraction
Class: a very abstract weakness, typically independent of language or technology
Status
Incomplete

Mitigations

  • Remove the malicious code once it is found.
  • Review the entire codebase for further malicious code, since an attack can hide in one or two lines anywhere.
  • Expect intentional obfuscation and include binary and generated code in the review.

Detection
MITRE cites disassembly with manual analysis, monitored execution, manual source review and origin analysis, each giving partial coverage.

CWE-506 in the KEV Catalog

as of 2026-11-16
All KEV statistics→
  • 9 CISA KEV entries name Embedded Malicious Code (CWE-506) in their CVE record, tied for 33rd among the 195 weaknesses named in the catalog.
  • CISA added 1 CWE-506 entry to the KEV catalog in 2024, 3 in 2025, and 5 so far in 2026.

Related Attack Patterns

3 CAPEC patterns
CAPEC-442Infected SoftwareStandard · Severity High · Likelihood Medium
CAPEC-636Hiding Malicious Data or Code within FilesStandard · Severity High
CAPEC-448Embed Virus into DLLDetailed · Severity High · Likelihood Medium

CWE-506 Vulnerabilities

9 CVEs
CVECVSS
CVE-2026-45321KEV
Malware in 42 @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys
9.6
CVE-2026-48027KEV
Compromised Nx Console version 18.95.0
9.3
CVE-2026-8398KEV
Daemon Tools Lite Embedded Malicious Code Vulnerability
9.8
CVE-2026-33634KEV
Trivy ecosystem supply chain briefly compromised
9.4
CVE-2025-54313KEV
Prettier eslint-config-prettier Embedded Malicious Code Vulnerability
7.5
CVE-2025-59374KEV
ASUS Live Update Embedded Malicious Code Vulnerability
9.3
CVE-2025-30154KEV
Multiple Reviewdog actions were compromised during a specific time period
8.6
CVE-2025-30066KEV
tj-actions/changed-files GitHub Action Embedded Malicious Code Vulnerability
8.6
CVE-2024-4978KEV
Malicious Code in Justice AV Solutions (JAVS) Viewer
8.7

Frequently Asked Questions

What is CWE-506?→

CWE-506 is the presence of code in a product that appears malicious, such as a Trojan horse or logic bomb.

Why is remediation of CWE-506 broader than removing one function?→

MITRE notes that malicious code can be hidden in very few lines and deliberately obfuscated, so a full review for other insertions is needed.

How many exploited vulnerabilities are classified as CWE-506?→

This database lists 9 CVE records mapped to CWE-506 by their CVE Numbering Authority. 9 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 2 to known ransomware campaigns. Examples include CVE-2026-45321, CVE-2026-48027, CVE-2026-8398.

Weakness definitions summarized from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.