What is CWE-829?
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.
CWE-829 is a base-level weakness in MITRE’s Common Weakness Enumeration. Applicable platforms: Language: Not Language-Specific.
Source: MITRE CWE (CWE-829 definition, reproduced verbatim). Counts and linkage below are Threadlinqs data.
Consequences
- Confidentiality, Integrity, Availability — Execute Unauthorized Code or Commands. An attacker could insert malicious functionality into the program by causing the program to download code that the attacker has placed into the untrusted control sphere, such as a malicious web site. This could enable the injection of malware, information exposure by granting excessive privileges or permissions to the untrusted functionality, DOM-based XSS vulnerabilities, stealing user's cookies, open redirect to malware (CWE-601), etc.
Source: MITRE CWE, common consequences.
How CWE-829 is exploited in the wild
Threadlinqs maps 10 CVEs to CWE-829, published between 2025-06-30 and 2026-11-12. 3 are listed in CISA’s Known Exploited Vulnerabilities catalog, the authoritative record of exploitation in the wild. By CVSS v3 severity the set splits into 3 critical, 5 high, 1 medium. The highest EPSS score in the set is 63.0% (CVE-2026-0770), the modelled probability of exploitation in the next 30 days. 351 tracked threats reference CWE-829 directly or through a CVE it covers; the most recent is “Malicious npm package indexed-btree evades install-script restrictions via BTree.prototype.set runtime trigger and Sepolia smart-contract C2” (2026-11-19). Affected products concentrate in AWS (1), Eclipse Foundation (1), Exim (1), among 9 vendors in total.
Vulnerabilities (CVEs)
All 10 CVEs mapped to CWE-829, CISA KEV first, then by CVSS score.
- CVE-2026-0770 — CISA KEV · CVSS 9.8 critical · EPSS 63.0% · published 2026-01-23
- CVE-2025-32463 — CISA KEV · CVSS 9.3 critical · EPSS 47.4% · published 2025-06-30
- CVE-2026-111357 — CISA KEV · CVSS 7 high · EPSS 0.5% · published 2026-10-15
- CVE-2026-1699 — CVSS 10 critical · EPSS 0.5% · published 2026-01-30
- CVE-2026-93993 — CVSS 8.8 high · EPSS 0.6% · published 2026-09-19
- CVE-2026-116330 — CVSS 8.8 high · EPSS 0.3% · published 2026-11-12
- CVE-2026-5241 — CVSS 8 high · EPSS 0.9% · published 2026-06-03
- CVE-2026-66141 — CVSS 7.4 high · EPSS 0.1% · published 2026-07-24
- CVE-2026-89332 — CVSS 5.5 medium · EPSS 0.1% · published 2026-09-11
- CVE-2026-86131 — EPSS 0.3% · published 2026-09-29
Affected vendors
- AWS — 1 CVE
- Eclipse Foundation — 1 CVE
- Exim — 1 CVE
- Ivanti — 1 CVE
- Langflow — 1 CVE
- Sudo project — 1 CVE
- WatchGuard — 1 CVE
- huggingface — 1 CVE
- mistralai — 1 CVE
Threat activity
351 tracked threats cite CWE-829; the 25 most recent are listed.
- Malicious npm package indexed-btree evades install-script restrictions via BTree.prototype.set runtime trigger and Sepolia smart-contract C2HIGH
- Microsoft agent-framework PyPI package compromised with .pth credential stealer (versions 1.26.1, 1.26.2)HIGH
- GhostMap eBPF Rootkit Hides Malware Processes and Sockets in IronWorm (npm) and Atomic Arch (AUR) Supply Chain CampaignsHIGH
- LMS (Lan Management System) vulnerabilities: CVE-2026-127142, CVE-2026-127143, CVE-2026-129961 (file upload to RCE, lmsd library loading)HIGH
- OPTIMJACK: Malicious JavaScript Web Injection Across CNN, Zoom, Salesforce and Other Sites via Third-Party (Optimizely-Hosted) Script Loader Targeting Crypto and Payment DataHIGH
- Poisoned third-party scripts (Optimizely, Kissmetrics, StorifyMe, minute-ly) on BBC, Zoom and other major sites deliver financial-theft skimmer and iPhone exploit-loader router (Coruna / DarkSword-linked)HIGH
- Cursor Supply-Chain Compromise: Leaked Fireworks AI Key Leads to Backdoored Anthropic.claude-code Extension (2.1.312/2.1.313) in Cursor Marketplace CacheHIGH
- Sckit Supply Chain Worm Hits MemTensor npm & PyPI Packages (@memtensor/memos-cloud-openclaw-plugin, MemoryOS)HIGH
- PostgreSQL CVE-2026-6460: 22-Year-Old Composite Type Confusion Enables Authenticated RCE; 52 CVEs Fixed in 18.7/17.12/16.16/15.20/14.25HIGH
- Adform Supply-Chain Compromise: trackpoint-async.js Serving Crypto-Wallet Address StealerHIGH
- MCP Server Supply Chain Weaknesses (uvx/npx Unpinned Dependencies) Could Expose API Keys and Administrator CredentialsMEDIUM
- Malicious RubyGem strutil-core 1.0.1 Steals 51 Credential Types and Backdoors AI Coding Tools (testmetest / Miasma worm, Shai-Hulud descendant)HIGH
- Supply Chain Attack Artifacts in GitHub Repositories and Developer Machines (Miasma, Shai-Hulud, ForceMemo, Megalodon, GhostAction, TeamPCP and others)HIGH
- NIKKE PC Game Launcher CDN Compromise Delivers K2F Remote Access and Data-Stealing MalwareHIGH
- PolinRider Loader Reappears in Hijacked npm Packages (12 malicious releases across 10 packages)HIGH
- Amazon Kiro IDE Prompt Injection Enabling Data Exfiltration via Malicious Workspace (CVE-2026-89332)MEDIUM
- Polymarket Third-Party Script Compromise: Wallet-Draining Code Served via DebugBear RUM ScriptHIGH
- Hugging Face 'Load/Mine' Campaign: Malicious Qwen2 Model Repos Abuse trust_remote_code to Hijack GPUs for Pearl (PRL) Mining and Backdoor Xinference/GPUStack HostsHIGH
- Malicious AGENTS.md / CLAUDE.md Files in Downloads Folder Trick AI Coding Agents (Codex, Claude Code) Into Installing MALFEX npm Malware (function-color, function-flag)MEDIUM
- LiteLLM Supply Chain Compromise (litellm 1.107.0) Targets AI Developer CredentialsCRITICAL
- Credential Layer Exposure: Secrets Sprawl and Shai-Hulud npm Supply Chain Credential Harvesting (GitGuardian)MEDIUM
- LiteLLM Supply-Chain Compromise: Malicious v1.107.0 on PyPI and Container Registries Deploys 'privcollect' Credential Stealer and GitHub Dead-Drop Remote Code LoaderCRITICAL
- OpenClaw AI Agent Skills Weaponized on ClawHub (ClawHavoc) to Deliver Atomic Stealer, Trojans and BackdoorsHIGH
- Plex Media Server Vulnerability Chain (Plex2Shell) Exploited in the Wild to Deploy XMRig Cryptominer - CVE-2026-96652, CVE-2026-96654, CVE-2026-96655, CVE-2026-96656CRITICAL
- MALFEX npm Campaign: 'imgdecode' Native Addon Hides DLL Shellcode Loader and Infostealer/RAT ChainHIGH
Mitigations
- Architecture and Design / Libraries or Frameworks: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482].
- Architecture and Design / Enforcement by Conversion: When the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs. For example, ID 1 could map to "inbox.txt" and ID 2 could map to "profile.txt". Features such as the ESAPI AccessReferenceMap [REF-45] provide this capability.
- Architecture and Design: For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
- Architecture and Design, Operation / Sandbox or Jail: Run the code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which files can be accessed in a particular directory or which commands can be executed by the software. OS-level examples include the Unix chroot jail, AppArmor, and SELinux. In general, managed code may provide some protection. For example, java.io.FilePermission in the Java SecurityManager allows the software to specify restrictions on file operations. This may not be a feasible solution, and it only limits the impact to the operating system; the rest of the application may still be subject to compromise. Be careful to avoid…
- Architecture and Design, Operation / Environment Hardening: Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.
- Implementation / Input Validation: Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected…
- Architecture and Design, Operation / Attack Surface Reduction: Store library, include, and utility files outside of the web document root, if possible. Otherwise, store them in a separate directory and use the web server's access control capabilities to prevent attackers from directly requesting them. One common practice is to define a fixed constant in each calling program, then check for the existence of the constant in the library/include file; if the constant does not exist, then the file was directly requested, and it can exit immediately. This significantly reduces the chance of an attacker being able to bypass any protection mechanisms that are in the base program but not in the include files. It will also reduce the attack surface.
- Architecture and Design, Implementation / Attack Surface Reduction: Understand all the potential areas where untrusted inputs can enter your software: parameters or arguments, cookies, anything read from the network, environment variables, reverse DNS lookups, query results, request headers, URL components, e-mail, files, filenames, databases, and any external systems that provide data to the application. Remember that such inputs may be obtained indirectly through API calls. Many file inclusion problems occur because the programmer assumed that certain inputs could not be modified, especially for cookies and URL components.
- Operation / Firewall: Use an application firewall that can detect attacks against this weakness. It can be beneficial in cases in which the code cannot be fixed (because it is controlled by a third party), as an emergency prevention measure while more comprehensive software assurance measures are applied, or to provide defense in depth [REF-1481].
Source: MITRE CWE, potential mitigations.
Detection methods (MITRE CWE)
- Automated Static Analysis - Binary or Bytecode (effectiveness: SOAR Partial): According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: Bytecode Weakness Analysis - including disassembler + source code weakness analysis
- Manual Static Analysis - Binary or Bytecode (effectiveness: SOAR Partial): 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
- Dynamic Analysis with Manual Results Interpretation (effectiveness: SOAR Partial): According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: Forced Path Execution Monitored Virtual Environment - run potentially malicious code in sandbox / wrapper / virtual machine, see if it does anything suspicious
- Manual Static Analysis - Source Code (effectiveness: High): According to SOAR [REF-1479], the following detection techniques may be useful: Highly cost effective: Manual Source Code Review (not inspections) Cost effective for partial coverage: Focused Manual Spotcheck - Focused manual analysis of source
- Automated Static Analysis - Source Code (effectiveness: SOAR Partial): According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: Source code Weakness Analyzer Context-configured Source Code Weakness Analyzer
- Architecture or Design Review (effectiveness: High): According to SOAR [REF-1479], the following detection techniques may be useful: Highly cost effective: Inspection (IEEE 1028 standard) (can apply to requirements, design, source code, etc.) Formal Methods / Correct-By-Construction Cost effective for partial coverage: Attack Modeling
Source: MITRE CWE, detection methods. Threadlinqs detection rules for the threats above are Blue tier and higher.