Untrusted Search Path Vulnerability in OpenTelemetry.Resources.Host on macOS
The OpenTelemetry.Resources.Host NuGet package is vulnerable to arbitrary code execution on macOS due to the use of bare paths for system command execution, allowing PATH hijacking.
CVE search metadata
CVE search record: CVE-2026-81192. Severity: high. CVSS: 7.0. EPSS: 0.14%. KEV: no. Product: OpenTelemetry.Resources.Host (< 1.16.0-beta.2). Brief: Untrusted Search Path Vulnerability in OpenTelemetry.Resources.Host on macOS. Brief link: https://feed.craftedsignal.io/briefs/2026-09-opentelemetry-host-path-hijack/
The OpenTelemetry.Resources.Host NuGet package (versions prior to 1.16.0-beta.2) contains an untrusted search path vulnerability on macOS, tracked as CVE-2026-81192. The host.id resource attribute detector initiates the ioreg and sh system binaries using bare names rather than absolute file paths. This implementation relies on the system's PATH environment variable to locate the executables.
A local, less-privileged attacker capable of modifying the PATH environment variable or placing a malicious executable into a directory that appears earlier in the PATH than system directories can intercept the execution request. When the host application - which may be running with elevated privileges - triggers the detector, it unknowingly executes the attacker-supplied binary. This results in arbitrary code execution within the context of the application process. Defenders should prioritize updating the library to the patched version, as the vulnerability is specific to macOS environments and no effective workarounds exist.
Attack Chain
- Attacker gains access to a user account on a macOS system where a vulnerable application is installed.
- Attacker identifies a process or service utilizing the
OpenTelemetry.Resources.Hostpackage. - Attacker identifies a writable directory that is included in the
PATHvariable used by the targeted process. - Attacker writes a malicious executable named
ioregto that directory. - Attacker modifies the environment variables of the targeted process or waits for the process to restart with the hijacked
PATHconfiguration. - The targeted application invokes the
host.idresource attribute detector. - The system resolves the call for
ioregto the malicious binary provided by the attacker. - The application executes the malicious binary with the application's elevated permissions, granting the attacker code execution.
Impact
This vulnerability allows for local privilege escalation on macOS systems. If an application using the affected library runs as root or another highly privileged service user, an attacker can achieve code execution at that elevated level. This facilitates full system compromise, data theft, and persistent access within the target environment.
Recommendation
Update the OpenTelemetry.Resources.Host NuGet package to version 1.16.0-beta.2 or later immediately. Ensure that environment variable configurations for critical services are hardened to prevent unauthorized modification of the PATH variable. There are currently no known configuration workarounds for this vulnerability.
Immediate actions
Upgrade OpenTelemetry.Resources.Host NuGet package to 1.16.0-beta.2 or later
Mitigations
Upgrade vulnerable OpenTelemetry.Resources.Host packages to version 1.16.0-beta.2 or later
CVE-2026-81192