Termius Arbitrary Code Execution Vulnerability on macOS via DYLD_INSERT_LIBRARIES

Vulnerability

A vulnerability in Termius for macOS, prior to version 9.9.0, allows local attackers to execute arbitrary code. This is achieved by injecting a crafted script into the DYLD_INSERT_LIBRARIES environment variable, which is then executed by the Termius application.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the affected system.

Reproduction

To reproduce this vulnerability, set the DYLD_INSERT_LIBRARIES environment variable to a malicious dynamic library that contains the desired payload. Then, launch the Termius application from the command line. The injected library will be loaded by the application, allowing the execution of the embedded code.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
4.6
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.