CWE-506: Embedded Malicious Code
102 CVEs have CWE-506 as their primary weakness. 9 of them are in the CISA KEV catalog. The highest EPSS score among them is 90.900%.
The product contains code that appears to be malicious in nature.
Child of CWE-912: Hidden Functionality
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.
Observed examples
- CVE-2022-30877: A command history tool was shipped with a code-execution backdoor inserted by a malicious party.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2025-30066 | 2025-03-15 | HIGH | 8.6 | 72.092% | tj-actions changed-files before 46 allows remote attackers to discover secrets by reading actions logs. (The tags v1 through v45.0.7 were affected on… |
| CVE-2026-33634 | 2026-03-23 | HIGH | 8.8 | 61.515% | Trivy is a security scanner. On March 19, 2026, a threat actor used compromised credentials to publish a malicious Trivy v0.69.4 release, force-push 76 of 77… |
| CVE-2024-4978 | 2024-05-23 | HIGH | 8.4 | 26.937% | Justice AV Solutions Viewer Setup 8.3.7.250-1 contains a malicious binary when executed and is signed with an unexpected authenticode signature. A remote… |
| CVE-2025-54313 | 2025-07-19 | HIGH | 7.5 | 5.125% | eslint-config-prettier 8.10.1, 9.1.1, 10.1.6, and 10.1.7 has embedded malicious code for a supply chain compromise. Installing an affected package executes an… |
| CVE-2026-45321 | 2026-05-12 | CRITICAL | 9.6 | 3.278% | On 2026-05-11, between approximately 19:20 and 19:26 UTC, 84 malicious versions across 42 @tanstack/* packages were published to the npm registry. The… |
| CVE-2025-30154 | 2025-03-19 | HIGH | 8.6 | 2.485% | reviewdog/action-setup is a GitHub action that installs reviewdog. reviewdog/action-setup@v1 was compromised March 11, 2025, between 18:42 and 20:31 UTC, with… |
| CVE-2026-48027 | 2026-05-27 | CRITICAL | 9.8 | 1.850% | Nx Console is the user interface for Nx & Lerna. On 19 May 2026, a malicious version of Nx Console, 18.95.0, was published at 12:30 PM UTC and removed soon… |
| CVE-2026-8398 | 2026-05-15 | CRITICAL | 9.8 | 1.456% | A supply chain attack compromised the official installation packages of DAEMON Tools Lite (Windows versions 12.5.0.2421 through 12.5.0.2434), distributed from… |
| CVE-2025-59374 | 2025-12-17 | CRITICAL | 9.8 | 1.207% | "UNSUPPORTED WHEN ASSIGNED" Certain versions of the ASUS Live Update client were distributed with unauthorized modifications introduced through a supply chain… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-506'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-506'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).