CVE Professor
/
All CVEs
CVE-2026-141517

CVE-2026-141517 — Aws Strands Box — CWE-41 · CWE-367

HIGH CVSS 7.8 Shodan

Improper resolution of path equivalence in the private state protection of Strands Box before 0.2.0 on macOS might allow a local actor who controls a sandboxed workload to run code as the invoking user outside the sandbox via an operator filesystem grant that reaches the box's private state through an alternate path spelling, combined with replacement of the containment helper when a later launch rebuilds it. To remediate this issue, users should upgrade to version 0.2.0 or later.

Improper resolution of path equivalence in the private state protection of Strands Box before 0.2.0 on macOS might allow a local actor who controls a sandboxed workload to run code as the invoking user outside the sandbox via an operator filesystem grant that reaches the box's private state through an alternate path spelling, combined with replacement of the containment helper when a later launch rebuilds it. To remediate this issue, users should upgrade to version 0.2.0 or later.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack Vector Local AV:L
Attack Complexity High AC:H
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Sandbox Escape flaw in Strands Box (a macOS sandboxing utility) prior to version 0.2.0. It stems from CWE-41 (Incomplete Capture of Filename for Path Traversal) and CWE-367 (Time-of-check Time-of-use Race Condition).

The core technical failure is in the Private State Protection mechanism. Strands Box uses macOS sandbox profiles (likely via sandbox-exec or similar entitlements) to isolate workloads. The vulnerability arises from two compounding issues:

1. Path Equivalence Bypass: The sandbox policy checks for access to "private state" directories using specific path strings. However, it fails to normalize or resolve alternate path spellings (e.g., .., symbolic links, or different mount points) that resolve to the same physical location. An attacker can craft a path that bypasses the deny rule by using an alternate spelling that the policy engine does not recognize as the protected path, even though the OS resolves it to the protected location.
2. Containment Helper Replacement (TOCTOU): The sandbox relies on a "containment helper" process or binary to enforce additional restrictions. There is a race condition where, if the sandbox is rebuilt or relaunched, the helper can be replaced by an attacker-controlled binary before the new sandbox instance fully initializes its checks. This allows the attacker to swap the legitimate helper with a malicious one that grants broader permissions or disables the sandbox entirely.

The result is that a local user (or a compromised sandboxed workload) can execute code with the privileges of the invoking user, effectively escaping the sandbox.

⚡ Attack Chain

1. Discovery & Reconnaissance

  • Target Identification: The attacker identifies that the victim is running macOS with Strands Box installed. This can be done via:
  • * Local user enumeration (ps aux | grep strands). * Checking for the presence of Strands Box binaries in /Applications or ~/Library/Application Support. * Monitoring for sandbox profile files (.sb or .plist) associated with Strands Box.
  • Version Check: The attacker determines the version is < 0.2.0 by checking the application's Info.plist or version string in the binary.
  • 2. Exploitation

    The attack requires two steps: bypassing the path check and replacing the helper.

    Step A: Path Equivalence Bypass
    The attacker crafts a file access request using an alternate path spelling that resolves to the private state directory but is not explicitly denied by the sandbox profile. For example, if the private state is at /Users/victim/.strands/private, the attacker might use a path like /Users/victim/..//Users/victim/.strands/private or a symbolic link created in a writable directory that points to the private state.

    Step B: Containment Helper Replacement (TOCTOU)
    The attacker monitors for a relaunch event of the sandboxed workload. When the workload is relaunched, there is a brief window where the old sandbox is torn down and the new one is being set up. During this window, the attacker replaces the legitimate containment helper binary (e.g., /usr/local/bin/strands-helper) with a malicious version. The malicious helper is designed to either:

  • Grant the sandboxed process broader filesystem access.

  • Disable the sandbox enforcement entirely.

  • Execute arbitrary code as the invoking user.
  • Illustrative PoC (Conceptual):
    Note: The exact binary names and paths are illustrative based on typical macOS sandboxing structures. The actual implementation depends on Strands Box's internal architecture.

    # 1. Create a malicious helper that disables sandbox restrictions
    cat > /tmp/malicious_helper.sh << 'EOF'
    #!/bin/bash
    # This script mimics the legitimate helper but removes sandbox restrictions
    # In a real exploit, this would be a compiled binary that manipulates
    # the sandbox profile or uses setuid to escalate privileges.
    echo "Sandbox disabled by malicious helper"
    exit 0
    EOF
    chmod +x /tmp/malicious_helper.sh
    
    # 2. Monitor for relaunch and replace the helper
    # This is a race condition exploit. The attacker must replace the helper
    # between the time the sandbox is torn down and the time it is re-initialized.
    while true; do
        if ! pgrep -f "strands-helper" > /dev/null; then
            # Helper is not running, likely in the relaunch window
            cp /tmp/malicious_helper.sh /usr/local/bin/strands-helper
            chmod +x /usr/local/bin/strands-helper
            break
        fi
        sleep 0.01
    done
    
    # 3. Trigger a relaunch of the sandboxed workload
    # This could be done by sending a signal to the process or using a UI action
    kill -HUP $(pgrep -f "strands-workload")

    Note: The above is a simplified conceptual example. A real exploit would require precise timing and knowledge of the internal process names and file paths used by Strands Box.

    3. Post-Exploitation

    Once the sandbox is escaped, the attacker has code execution as the invoking user. This allows:
  • Data Exfiltration: Access to all files readable by the user, including documents, browser data, and SSH keys.
  • Persistence: Installation of malware, cron jobs, or launch daemons.
  • Lateral Movement: If the user has administrative privileges, the attacker can escalate to root using standard macOS privilege escalation techniques.
  • 🌍 Real World Impact

  • Confidentiality (High): The attacker can read any file accessible to the invoking user, including sensitive personal data, credentials, and business information.
  • Integrity (High): The attacker can modify files, install malware, or alter system configurations.
  • Availability (High): The attacker can delete critical files, crash the system, or disrupt services.
  • Scope Change (C): The vulnerability allows the attacker to escape the sandbox and affect the broader system, not just the isolated workload.
  • Practical Consequences:

  • Corporate Environments: If employees use Strands Box to isolate untrusted applications, a compromise could lead to lateral movement within the corporate network.

  • Developer Environments: Developers using Strands Box to test untrusted code could have their development machines compromised, leading to source code theft or CI/CD pipeline compromise.

  • Personal Use: Users could have their personal data stolen or their machines turned into botnets.
  • 🛡️ Remediation & Mitigation

    1. Upgrade

  • Affected Versions: Strands Box < 0.2.0
  • Fixed Version: Strands Box 0.2.0 or later
  • Action: Immediately upgrade to version 0.2.0 or later. This is the most critical and effective remediation.
  • 2. Workarounds (If Upgrade is Not Immediately Possible)

  • Disable Strands Box: If the sandboxing functionality is not critical, disable Strands Box entirely.
  • Restrict Filesystem Access: Manually configure the sandbox profile to deny access to all paths except those explicitly required. Use deny file-read and deny file-write* as default rules, and only allow specific paths.
  • Monitor for Helper Replacement: Implement file integrity monitoring (FIM) on the containment helper binary. Alert on any changes to the helper's hash or permissions.
  • Run as Non-Privileged User: If possible, run Strands Box as a non-privileged user to limit the impact of a sandbox escape.
  • 3. Detection

  • File Integrity Monitoring (FIM): Monitor the containment helper binary for unauthorized changes.
  • * Tool: Use osquery or AIDE to monitor the hash of the helper binary. * Query Example (osquery):
    SELECT path, hash FROM file WHERE path LIKE '%strands-helper%';
  • Process Monitoring: Monitor for unexpected process launches or parent-child relationships involving Strands Box components.
  • * Tool: Use Endpoint Security framework or osquery to monitor process creation. * Query Example (osquery):
    SELECT pid, ppid, name, path FROM processes WHERE name LIKE '%strands%';
  • File Access Monitoring: Monitor for unusual file access patterns, especially to private state directories.
  • * Tool: Use Endpoint Security framework to monitor file read/write events. * Event: Alert on ES_EVENT_TYPE_AUTH_OPEN or ES_EVENT_TYPE_NOTIFY_OPEN for paths containing .strands/private.

    ⚠️ Urgency

  • CVSS Score: 7.8 (HIGH)
  • CISA KEV: No
  • Exploit Complexity: High (requires local access and precise timing for TOCTOU)
  • Patching Priority: High
While the exploit complexity is high, the impact is severe (full sandbox escape). Any environment where Strands Box is used to isolate untrusted or potentially malicious workloads should be considered at risk. Patching should be prioritized, especially in environments where the sandbox is used as a primary security control. If Strands Box is not actively used, it should be disabled or removed.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="aws Strands Box"
CVSS Score
7.8 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-41 CWE-367
Affected Products (1)
aws:Strands Box
References & Advisories (3)
Related CVEs
9.2
CVE-2026-141488
The AIDB MCP endpoint (edb-endpoints) in AIDB 7.7.0 through 7.8.0 authenticates HTTP Basic credentials by open
8.5
CVE-2026-120096
Missing authorization in the push publishing endpoints REST API (/api/v1/environments/endpoints) and in the pu
6.3
CVE-2026-126115
Inclusion of sensitive information in the starter export (Maintenance, Download Starter, /api/v1/maintenance/_
5.3
CVE-2026-126100
Two flaws in dotCMS through 26.11.09-01, and in the 25.07 LTS line. First, the notifications REST endpoint (/a
6.5
CVE-2026-145059
FreeRDP from 3.25.0 before 3.33.1 contains a use-after-free in the RDPEWA client because notifyWait does not j
6.3
CVE-2026-144771
A flaw has been found in SGLang up to 0.5.23. The affected element is the function try_match_prefix of the fil
5.8
CVE-2026-144210
In Eclipse Safe Open Vehicle Core (S-CORE) Kyron versions 0.0.3 through 0.2.0, `SpmcStealQueue::fetch_from` in