External risk intelligence

Rex Perl SSH Host Key Bypass

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-94140

Rex is a Perl-based configuration management and automation tool used for orchestrating server tasks. While it uses SSH for remote communication, it is typically deployed within internal administrative or development environments rather than being exposed as a public-facing service. The vulnerable rsync command is used for internal automation workflows, making direct public internet exposure uncommon.

Halo Surface Signal: 2 out of 5 — less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This vulnerability in Rex, a Perl tool for managing server configurations, could allow an attacker to intercept remote file transfers. Rex inadvertently bypasses critical security checks when transferring files over SSH, potentially exposing sensitive information or allowing malicious files to be introduced during the process. The main concern is confirming relevance and exposure.

  • Remote file transfers lack host key verification.
  • Attackers could intercept data or inject malicious content.
  • Confirm relevance and assess exposure to internal systems.

Attack Path

How an attacker could exploit the issue

An attacker could compromise remote rsync transfers by redirecting the connection to a malicious server before the legitimate host key is verified. This allows them to present a fake host key, and if the transfer is then authenticated using a password, the attacker can intercept sensitive connection details, upload local files to their server, or overwrite local files with data from their server.

  • Network access required.
  • Remote rsync transfers.
  • Data compromise and modification.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an attacker to intercept remote rsync transfers by presenting a malicious SSH host key. When this occurs, sensitive local files could be uploaded to an attacker-controlled server, or an attacker could trick the system into downloading arbitrary files from their server, potentially overwriting local data.

  • Sensitive local files may be uploaded.
  • Attacker redirects rsync connection.
  • Data can be exfiltrated or overwritten.

Operational Fix

Recommended remediation, mitigation, and detection steps

The `Rex` tool's use of `rsync` with hardcoded host key checking disabled presents a risk of man-in-the-middle attacks during remote transfers. Application owners or the platform team managing `Rex` deployments should identify all instances of `Rex`, confirm their exposure and criticality, and then coordinate remediation.

  • Application or platform teams should own this.
  • Verify `Rex` instances and their network exposure.
  • Plan remediation based on identified risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Rex for Perl?

Rex is a software framework written in Perl used by system administrators to automate server tasks, manage configurations, and execute remote commands. It acts as an orchestration tool, allowing users to coordinate complex workflows across multiple servers, including file transfers via rsync.

What does CVE-2026-94140 mean?

This vulnerability, classified as CWE-322: Key Exchange Weakness, involves a failure in cryptographic identity verification. Because the software hardcodes a setting that ignores SSH host keys, it cannot verify if it is connecting to the intended server. An attacker can impersonate the legitimate destination, causing the tool to unknowingly send data to or receive files from a malicious source.

How does an attacker trigger this bug?

An attacker triggers this flaw by intercepting and redirecting a Rex rsync network connection before the SSH handshake completes. Importantly, simply having access to the network is not enough; the attacker must be positioned to actively reroute the traffic. Once redirected, the software's refusal to check host keys allows the attacker to step in as a proxy and compromise the transfer.

Is my system at risk?

Halo Surface Signal indicates that Rex is typically used for internal administrative tasks, making direct exposure to the public internet unlikely. You should primarily focus on systems where Rex runs in environments accessible to broader, less-trusted networks, or where automated workflows cross security boundaries, as these present the most relevant pathways for an attacker to redirect your connections.

What should I do if I use Rex?

Begin by auditing your infrastructure to locate all active instances of the Rex automation tool. Since the issue is embedded in the rsync command configuration, verify which automated workflows perform remote file transfers. Coordinate with your platform teams to monitor for available updates or guidance from the maintainers, while restricting network access for existing Rex instances to only known, trusted segments.

References