Skip to main content
Vulnerability Database/CVE-2026-107785

CVE-2026-107785: Crux Agent Information Disclosure Flaw

CVE-2026-107785 is an information disclosure vulnerability in Crux Agent affecting versions 1.9.0 to 2.0.3. It involves improper WireGuard preshared key handling that may expose tunnel traffic to quantum attacks. This post covers technical details, affected versions, impact, and mitigation steps.

Published:

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-107785 Overview

Crux Agent versions 1.9.0 through 2.0.2 fail to validate the size of the Secure Key Agreement (SKA) bilocation key before using it as a WireGuard preshared key. When a peering session negotiates SHA-512, the derived key is 64 bytes rather than the 32 bytes WireGuard requires. The agent attempts to apply the oversized key with wg set and writes it to the configuration file without checking the return status [CWE-252]. Existing tunnels continue operating with the previous preshared key until shutdown, after which they fail to restart. Peers that have never negotiated a valid 32-byte key in a Crux C2 organization with Enforce SKA Use disabled run with no preshared key at all.

Critical Impact

Tunnels without a valid preshared key lose post-quantum protection, allowing an attacker who records traffic and later obtains a cryptographically relevant quantum computer to decrypt captured sessions.

Affected Products

  • Crux Agent 1.9.0
  • Crux Agent versions after 1.9.0 and before 2.0.3
  • Crux C2 organizations with Enforce SKA Use disabled

Discovery Timeline

  • 2026-10-09 - CVE-2026-107785 published to NVD
  • 2026-10-09 - Last updated in NVD database

Technical Details for CVE-2026-107785

Vulnerability Analysis

The Crux Agent integrates a Secure Key Agreement (SKA) bilocation mechanism to derive preshared keys for WireGuard tunnels. WireGuard mandates a fixed 32-byte preshared key. When peers negotiate SHA-512 during the SKA handshake, the agent produces a 64-byte key and passes it to wg set without validating length. The command rejects the oversized input, but the agent discards the error and persists the invalid key to the WireGuard configuration file.

The immediate result is a silent degradation of the tunnel's post-quantum defense. Running tunnels retain their earlier preshared key in kernel state, masking the failure. When the tunnel restarts, the configuration file holds an invalid key and the interface fails to come up. For peers that never negotiated a valid 32-byte key, no preshared key is applied at all when Enforce SKA Use is turned off at the organization level.

Root Cause

The defect is an unchecked return value from the wg set operation combined with missing length validation on the SKA-derived key material. The agent assumes the key is always 32 bytes and does not verify the output of the key agreement before writing it to persistent configuration.

Attack Vector

An attacker on the network path captures WireGuard traffic between affected peers. Because the preshared key provides the post-quantum harden-against-later-decryption layer on top of the classical Curve25519 handshake, its absence leaves recorded sessions vulnerable to decryption once a cryptographically relevant quantum computer becomes available. The attack requires passive capture plus future quantum capability; no active interaction with the tunnel is needed.

The vulnerability does not grant real-time traffic decryption. Exploitation is prospective and depends on the attacker storing ciphertext for later cryptanalysis.

Detection Methods for CVE-2026-107785

Indicators of Compromise

  • WireGuard configuration files containing a PresharedKey entry longer than the required 32-byte base64 representation
  • Tunnels that fail to start after a restart with errors referencing invalid preshared key length
  • Absence of a PresharedKey field in peer sections when Enforce SKA Use is disabled at the Crux C2 organization level

Detection Strategies

  • Inventory all Crux Agent installations and flag any version in the range 1.9.0 through 2.0.2
  • Audit WireGuard configuration files for malformed PresharedKey values and compare against the agent's logged SKA negotiation output
  • Review Crux C2 organization settings to identify tenants with Enforce SKA Use disabled

Monitoring Recommendations

  • Alert on wg set command failures and non-zero exit codes in Crux Agent logs
  • Monitor tunnel restart events that transition peers from an operational state to a failed-to-start state
  • Track SKA negotiation events that select SHA-512 to identify sessions that produced oversized keys

How to Mitigate CVE-2026-107785

Immediate Actions Required

  • Upgrade Crux Agent to version 2.0.3 or later on all peers
  • Enable the Enforce SKA Use setting in each Crux C2 organization to prevent tunnels from running without a preshared key
  • Rotate preshared keys on all tunnels that may have negotiated SHA-512 under a vulnerable agent version

Patch Information

The fix is included in Crux Agent 2.0.3. Refer to the Sirius Security Disclosure Policy for coordinated disclosure details and vendor guidance.

Workarounds

  • Pin SKA negotiation parameters to produce 32-byte keys by disabling SHA-512 selection where configurable
  • Manually verify each peer's WireGuard configuration file contains a valid 32-byte base64-encoded preshared key
  • Restrict network reachability for affected peers until agents are upgraded to reduce exposure to passive traffic capture
bash
# Verify preshared key length in WireGuard configuration
grep -E '^PresharedKey' /etc/wireguard/*.conf | \
  awk '{print $3}' | while read key; do
    len=$(echo -n "$key" | base64 -d 2>/dev/null | wc -c)
    if [ "$len" != "32" ]; then
      echo "Invalid preshared key length: $len bytes"
    fi
  done

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.