CWEweakness

CWE-506 Embedded Malicious Code

Official page ↗
Abstraction
Class
Structure
Simple
Status
Incomplete
Languages
Not Language-Specific
CWE version
5.0

Description

The product contains code that appears to be malicious in nature.

Common consequences

• Confidentiality, Integrity, Availability: Execute Unauthorized Code or Commands

Potential mitigations

• [Implementation, Operation] Remove the malicious code and start an effort to ensure that no more malicious code exists. This may require a detailed review of all code, as it is possible to hide a serious attack in only one or two lines of code. These lines may be located almost anywhere in an application and may have been intentionally obfuscated by the attacker.

Detection methods

• Manual Static Analysis - Binary or Bytecode: According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: • Binary / Bytecode disassembler - then use manual analysis for vulnerabilities & anomalies • Generated Code Inspection • Dynamic Analysis with Manual Results Interpretation: According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: • Automated Monitored Execution • Manual Static Analysis - Source Code: According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: • Manual Source Code Review (not inspections) • Automated Static Analysis: According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: • Origin Analysis

Observed examples

• CVE-2022-30877: A command history tool was shipped with a code-execution backdoor inserted by a malicious party.

Related

Attack pattern · CAPEC (3)

  • CAPEC-442 Infected Software attack pattern
  • CAPEC-448 Embed Virus into DLL attack pattern
  • CAPEC-636 Hiding Malicious Data or Code within Files attack pattern

Observed example · CVE (1)

  • CVE-2022-30877 The keep for python, as distributed on PyPI, included a code-execution backdoor inserted by a third party. vulnerability

Child of · CWE (1)

  • CWE-912 Hidden Functionality weakness

Referenced by CAPEC · weakness (3)

  • CAPEC-442 Infected Software attack pattern
  • CAPEC-448 Embed Virus into DLL attack pattern
  • CAPEC-636 Hiding Malicious Data or Code within Files attack pattern

Referenced by CVE · weakness (103)

  • CVE-2026-111862 Rank Math SEO PRO for WordPress is affected by a supply-chain compromise in a subset of version 3.0.123 packages downloaded or updated… vulnerability
  • CVE-2026-97230 IO::Socket::SSL::SelfCertificate versions 1.00 for Perl contains malware which executes Python code from an obfuscated URL. vulnerability
  • CVE-2026-95831 Crypt::SelfCertificate versions from 1.01 through 1.05 for Perl contains malware which executes Python code from an obfuscated URL. vulnerability
  • CVE-2026-74232 Zbtlink L3_V2_8 firmware 3.0.0.4.528, Zbtlink WE826-T2 firmware 19.1101, Zbtlink ZBT-7628 firmware 1.0.0.2.007, Zbtlink ZBT-ZBT7621… vulnerability
  • CVE-2026-77649 The internment crate 0.8.7 for Rust can trigger execution of malicious code when compiling a project that uses the crate, because it has a… vulnerability
  • CVE-2026-77650 The append-only-vec crate 0.1.9 for Rust can trigger execution of malicious code when compiling a project that uses the crate, because it… vulnerability
  • CVE-2026-77651 The arrayref crate 0.3.10 for Rust can trigger execution of malicious code when compiling a project that uses the crate, because it has a… vulnerability
  • CVE-2026-73532 Fluent Forms Pro 6.2.7 contains an embedded malicious code vulnerability introduced via a tampered plugin build served through a… vulnerability
  • CVE-2026-73533 Ninja Tables Pro 5.2.11 contains an embedded malicious code vulnerability introduced via a tampered plugin build served through a… vulnerability
  • CVE-2026-48158 use-context-selector is a React useContextSelector hook in userland Between 2026-05-18 15:57:18 and 2026-05-19 15:24:34, the default branch… vulnerability
  • CVE-2026-48159 use-reducer-async is a React useReducer with async actions. vulnerability
  • CVE-2026-48160 react-tracked provides state usage tracking with Proxies. vulnerability
  • CVE-2026-48161 react18-use is a React 19 use hook shim. vulnerability
  • CVE-2026-66747 Zbtlink router firmware ships an embedded remote-control implant, ENDLESSDOORS, present in every published build across the product line. vulnerability
  • CVE-2026-18072 The Advanced Responsive Video Embedder for Rumble, Odysee, YouTube, Vimeo, Kick … plugin for WordPress is vulnerable to Authentication… vulnerability
  • CVE-2026-67595 VaahCMS versions 2.0.0 through 2.3.4 contain a malicious obfuscated JavaScript payload embedded in the Blade template responsible for… vulnerability
  • CVE-2026-46412 @beproduct/nestjs-auth is a NestJS authentication module for BeProduct IDS (Identity Server) with OpenID Connect support. vulnerability
  • CVE-2026-46421 The SAP Cloud Application Programming Model is a tool for building enterprise-grade cloud applications, and cap-js/cds-dbs is the monorepo… vulnerability
  • CVE-2026-45758 Guardrails AI is a Python framework that helps build AI applications. vulnerability
  • CVE-2026-48027 Nx Console is the user interface for Nx & Lerna. vulnerability
  • CVE-2026-8398 A supply chain attack compromised the official installation packages of DAEMON Tools Lite (Windows versions 12.5.0.2421 through… vulnerability
  • CVE-2026-44484 PyTorch Lightning is a deep learning framework to pretrain and finetune AI models. vulnerability
  • CVE-2026-45321 On 2026-05-11, between approximately 19:20 and 19:26 UTC, 84 malicious versions across 42 @tanstack/* packages were published to the npm… vulnerability
  • CVE-2026-6443 All plugins by Essentialplugin for WordPress are vulnerable to an injected backdoor in various versions. vulnerability
  • CVE-2026-34424 Smart Slider 3 Pro version 3.5.1.35 for WordPress and Joomla contains a multi-stage remote access toolkit injected through a compromised… vulnerability
  • CVE-2026-34841 Bruno is an open source IDE for exploring and testing APIs. vulnerability
  • CVE-2026-33634 Trivy is a security scanner. vulnerability
  • CVE-2026-31976 xygeni-action is the GitHub Action for Xygeni Scanner. vulnerability
  • CVE-2026-28353 Trivy Vulnerability Scanner is a VS Code extension that helps find vulnerabilities. vulnerability
  • CVE-2024-10938 The OVRI Payment plugin for WordPress contains malicious .htaccess files in version 1.7.0. vulnerability
Show all 103 ›

Referenced by CWE · child of (4)

Referenced by OWASP · mapped cwe (1)

  • A08:2025 Software or Data Integrity Failures Top 10 2025