What is CWE-427?
The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.
Although this weakness can occur with any type of resource, it is frequently introduced when a product uses a directory search path to find executables or code libraries, but the path contains a directory that can be modified by an attacker, such as "/tmp" or the current working directory. In Windows-based systems, when the LoadLibrary or LoadLibraryEx function is called with a DLL name that does not contain a fully qualified path, the function follows a search order that includes two path elements that might be uncontrolled: the directory from which the program has been loaded the current working directory In some cases, the attack can be conducted remotely, such as when SMB or WebDAV network shares are used. One or more locations in that path could include the Windows drive root or its subdirectories. This often exists in Linux-based code assuming the controlled nature of the root directory (/) or its subdirectories (/etc, etc), or a code that recursively accesses the parent directory. In Windows, the drive root and some of its subdirectories have weak permissions by default, which makes them uncontrolled. In some Unix-based systems, a PATH might be created that contains an empty element, e.g. by splicing an empty variable into the PATH. This empty element can be interpreted as equivalent to the current working directory, which might be an untrusted search element. In software package management frameworks (e.g., npm, RubyGems, or PyPi), the framework may identify dependencies on third-party libraries or other packages, then consult a repository that contains the desired package. The framework may search a public repository before a private repository. This could be exploited by attackers by placing a malicious package in the public repository that has the same name as a package from the private repository. The search path might not be directly under control of the developer relying on the framework, but this search order effectively contains an untrusted element.
CWE-427 is a base-level weakness in MITRE’s Common Weakness Enumeration. Applicable platforms: Language: Not Language-Specific; Operating_System: Not OS-Specific; Technology: Not Technology-Specific.
Source: MITRE CWE (CWE-427 definition, reproduced verbatim). Counts and linkage below are Threadlinqs data.
Consequences
- Confidentiality, Integrity, Availability — Execute Unauthorized Code or Commands
Source: MITRE CWE, common consequences.
How CWE-427 is exploited in the wild
Threadlinqs maps 10 CVEs to CWE-427, published between 2025-01-30 and 2026-11-03. 1 is listed in CISA’s Known Exploited Vulnerabilities catalog, the authoritative record of exploitation in the wild. By CVSS v3 severity the set splits into 1 critical, 6 high, 1 medium. The highest EPSS score in the set is 0.9% (CVE-2026-110936), the modelled probability of exploitation in the next 30 days. 81 tracked threats reference CWE-427 directly or through a CVE it covers; the most recent is “"Office Party" flaw in Anthropic Claude DOCX/PPTX/XLSX skills (soffice.py LD_PRELOAD shim) enables code execution on Linux” (2026-11-09). Affected products concentrate in Siemens (2), Adobe (1), Discord (1), among 8 vendors in total.
Vulnerabilities (CVEs)
All 10 CVEs mapped to CWE-427, CISA KEV first, then by CVSS score.
- CVE-2026-110936 — CISA KEV · CVSS 6.7 medium · EPSS 0.9% · published 2026-10-15
- CVE-2026-65093 — CVSS 9.9 critical · EPSS 0.8% · published 2026-08-25
- CVE-2026-48388 — CVSS 8.6 high · EPSS 0.3% · published 2026-07-28
- CVE-2025-56383 — CVSS 8.4 high · EPSS 0.2% · published 2025-09-26
- CVE-2026-0487 — CVSS 8.4 high · published 2026-07-14
- CVE-2026-28327 — CVSS 8.2 high · published 2026-11-03
- CVE-2025-30033 — CVSS 7.8 high · EPSS 0.2% · published 2025-08-12
- CVE-2026-0776 — CVSS 7.3 high · EPSS 0.3% · published 2026-01-23
- CVE-2024-2658 — EPSS 0.8% · published 2025-01-30
- CVE-2026-12003 — EPSS 0.1% · published 2026-06-16
Affected vendors
- Siemens — 2 CVEs
- Adobe — 1 CVE
- Discord — 1 CVE
- Flexera — 1 CVE
- NVIDIA — 1 CVE
- Python Software Foundation — 1 CVE
- SAP_SE — 1 CVE
- SolarWinds — 1 CVE
Threat activity
81 tracked threats cite CWE-427; the 25 most recent are listed.
- "Office Party" flaw in Anthropic Claude DOCX/PPTX/XLSX skills (soffice.py LD_PRELOAD shim) enables code execution on LinuxMEDIUM
- Siemens SSA-282044: DLL Hijacking in Siemens Web Installer (SIWA) used by Online Software Delivery (CVE-2025-30033)HIGH
- YobaLoader Campaign: DLL Sideloading in Signed OpenAI/Anthropic-Themed Binaries via Fake GitHub Repositories Delivering XMRigHIGH
- Microsoft Edge Logic-Bug Full Chain: UXSS, Immersive Reader File Write and protocols.json Hijack Escape Sandbox to Windows Code Execution (Pwn2Own Berlin 2026)HIGH
- BloodAlchemy RAT - Evolved Deed RAT Variant with ShadowPad Code LineageMEDIUM
- Yoba Malware Campaign Abuses Signed ChatGPT and Claude Binaries via Fake GitHub Repositories to Deploy XMRig MinerHIGH
- CISA KEV: Exploited Plex2Shell Plex Media Server Chain (CVE-2026-96652/96654/96655/96656), Siemens Software Center CVE-2026-110936 and SiteGuard CVE-2026-106931CRITICAL
- BRONZE SANDCASTLE Intrusions: Active Directory Database (ntds.dit) Theft via DLL Sideloading and Modified MeterpreterHIGH
- Siemens Software Center DLL Sideloading Vulnerability (CVE-2026-110936) Exploited in ClickFix Malware AttacksHIGH
- Infostealer Campaign Using Spoofed Software Installers and DLL Sideloading (CoreMessaging.dll)HIGH
- 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
- XWorm RAT C2 panel unauthenticated RCE via path traversal and DLL hijack (versions up to 7.4) with public PoCHIGH
- CikaBika Bot: Rust-based RAT with Nim loader using Discord for C2 and Ngrok for exfiltrationMEDIUM
- MariaDB Server and Connector/C Flaws Enable Code Execution, Data Access and Credential Exposure (CVE-2026-107815, CVE-2026-107821, CVE-2026-102523, CVE-2026-107819)HIGH
- Cisco Talos disclosure: Microsoft, Adobe, Apple, and Foxit vulnerabilities (CVE-2026-48388, CVE-2026-57256, CVE-2026-91799, CVE-2026-50475, CVE-2026-58613, CVE-2026-80093, CVE-2026-49177)HIGH
- BambooToken Malware Uses MQTT Protocol for Cross-Platform Windows/Linux C2HIGH
- FalconFlank — CrowdStrike Falcon Sensor Local Privilege Escalation Zero-Day with Public PoCHIGH
- FalconFlank Zero-Day Local Privilege Escalation in CrowdStrike Falcon Sensor via Office Macro Remediation DLL HijackingHIGH
- MoiClient Backdoor: Multi-Stage Evasion via DLL Side-Loading, RPC UAC Bypass, and BYOVD Driver AbuseHIGH
- Mustang Panda Targets India's Government and Energy Sectors with SHARDLOADER, MINIRECON, and ZOHOMURKHIGH
- TerminalFix Campaign: ClickFix-Style Lure Deploys Steganographic DLL Sideload and Custom Reverse Tunnel in Multistage IntrusionHIGH
- SLEEPWALKER: Passive-Trigger Windows Backdoor Masquerading as dpapi.dll via ERAAgent.exe Side-LoadingMEDIUM
- Adobe and Nvidia Patch Dozens of Vulnerabilities Across Multiple Products, Including Two Critical Flaws in Nvidia's NemoClaw AI Agent Stack and a CVSS 10.0 Adobe Campaign Classic ChainCRITICAL
- Banking Trojans: Manic, Grandoreiro, and ToxicPanda 2.0 in the SpotlightHIGH
- SilkParasite: China-Nexus APT Deploys Seven RAT Families Against Central Asian GovernmentsHIGH
Mitigations
- Architecture and Design, Implementation / Attack Surface Reduction: Hard-code the search path to a set of known-safe values (such as system directories), or only allow them to be specified by the administrator in a configuration file. Do not allow these settings to be modified by an external party. Be careful to avoid related weaknesses such as CWE-426 and CWE-428.
- Implementation / Attack Surface Reduction: When invoking other programs, specify those programs using fully-qualified pathnames. While this is an effective approach, code that uses fully-qualified pathnames might not be portable to other systems that do not use the same pathnames. The portability can be improved by locating the full-qualified paths in a centralized, easily-modifiable location within the source code, and having the code refer to these paths.
- Implementation / Attack Surface Reduction: Remove or restrict all environment settings before invoking other programs. This includes the PATH environment variable, LD_LIBRARY_PATH, and other settings that identify the location of code libraries, and any application-specific search paths.
- Implementation: Check your search path before use and remove any elements that are likely to be unsafe, such as the current working directory or a temporary files directory. Since this is a denylist approach, it might not be a complete solution.
- Implementation: Use other functions that require explicit paths. Making use of any of the other readily available functions that require explicit paths is a safe way to avoid this problem. For example, system() in C does not require a full path since the shell can take care of finding the program using the PATH environment variable, while execl() and execv() require a full path.
Source: MITRE CWE, potential mitigations.
Detection methods (MITRE CWE)
- Automated Static Analysis (effectiveness: High): Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Source: MITRE CWE, detection methods. Threadlinqs detection rules for the threats above are Blue tier and higher.