CWE Database
/

CWE-506

Back to CWE list

CWE-506

Embedded Malicious Code

Class
Incomplete

Description

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

Malicious flaws have acquired colorful names, including Trojan horse, trapdoor, timebomb, and logic-bomb. A developer might insert malicious code with the intent to subvert the security of a product or its host system at some time in the future. It generally refers to a program that performs a useful service but exploits rights of the program's user in a way the user does not intend.

Parent Weaknesses (ChildOf)

Common Consequences

Scope

Confidentiality
Integrity
Availability

Impact

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.

CVE-2022-30877

A command history tool was shipped with a code-execution backdoor inserted by a malicious party.

Applicable Platforms

Not Language-Specific

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now