Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-95182 Overview
CVE-2026-95182 is an untrusted search path vulnerability [CWE-426] in DeepSeek Harness (dsh) at commit c291e796. Attackers can execute arbitrary code by supplying crafted executable files that replace legitimate content loaded by the harness. The flaw carries a maximum CVSS 3.1 base score of 10.0 and a changed scope, meaning successful exploitation impacts resources beyond the vulnerable component.
Critical Impact
Remote attackers can achieve arbitrary code execution without authentication or user interaction by planting malicious binaries along the untrusted search path consumed by dsh.
Affected Products
- DeepSeek Harness (dsh) at commit c291e796
- Downstream tooling that invokes dsh with attacker-controlled search paths
- Development and automation environments that execute dsh workflows
Discovery Timeline
- 2026-10-16 - CVE-2026-95182 published to the National Vulnerability Database
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-95182
Vulnerability Analysis
The vulnerability stems from how DeepSeek Harness resolves executable file paths. dsh relies on a search path that is not restricted to trusted directories. When the harness attempts to open or invoke a resource, it accepts the first matching file it discovers along that path.
An attacker who can place a crafted executable earlier in the search order causes dsh to execute attacker code instead of the intended binary. The CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H indicates network-reachable exploitation with no privileges or interaction required, and a scope change that affects adjacent components.
Root Cause
The root cause is improper control of the search path element, classified as CWE-426 (Untrusted Search Path). dsh does not pin executable or library lookups to vetted, absolute locations. The process inherits path precedence from the surrounding environment, which an attacker can influence.
Attack Vector
Exploitation requires the attacker to supply or stage a crafted executable in a directory consulted before the legitimate path entry. When a victim or automated process opens the targeted content through dsh, the harness loads the malicious file. Code then executes with the privileges of the invoking user or service account. Technical reproduction steps are documented in the GitHub PoC for CVE-2026-95182 and the associated GitHub Gist snippet.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-95182
Indicators of Compromise
- Unexpected executable files appearing in directories referenced by dsh or in writable locations that precede trusted entries in PATH
- dsh child processes spawning shells, interpreters, or network utilities not associated with normal harness activity
- Modifications to environment variables such as PATH, LD_LIBRARY_PATH, or working directory settings prior to dsh invocation
Detection Strategies
- Monitor process creation events where dsh is the parent and the child executable resides outside expected installation paths
- Audit file-write telemetry in directories consulted by dsh for new or recently modified executables
- Correlate dsh executions with changes to shell initialization files and environment variable exports
Monitoring Recommendations
- Enable EDR process lineage logging for all dsh invocations across development and CI/CD hosts
- Alert on dsh executions that originate from or load binaries in world-writable directories such as /tmp or user profile paths
- Forward process, file, and environment telemetry to a centralized data lake for retroactive hunting against commit c291e796
How to Mitigate CVE-2026-95182
Immediate Actions Required
- Inventory all hosts running DeepSeek Harness at commit c291e796 and restrict execution to trusted maintainers
- Remove untrusted or world-writable directories from PATH and other search-path variables used when invoking dsh
- Validate the integrity of executables resolved by dsh before each run using checksum verification
Patch Information
No vendor patch is referenced in the NVD entry at publication. Monitor the DeepSeek Security Overview and the upstream repository for a fixed commit that supersedes c291e796. Apply the fix as soon as it becomes available and rotate any credentials or tokens accessible to processes that executed dsh on affected hosts.
Workarounds
- Invoke dsh with an explicitly sanitized environment that defines a minimal, absolute PATH
- Execute dsh under a dedicated low-privilege service account isolated from developer workstations and production assets
- Enforce application allowlisting so only signed, vetted executables can run from directories consulted by dsh
# Configuration example: run dsh with a sanitized, minimal PATH
env -i PATH=/usr/local/bin:/usr/bin HOME="$HOME" \
/opt/dsh/bin/dsh "$@"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

