# CVE-2026-81192: OpenTelemetry.Resources.Host vulnerable to arbitrary code execution via local PATH hijacking on macOS

> A local attacker can execute arbitrary code via PATH hijacking in the OpenTelemetry Host resource detector on macOS, leading to privilege escalation.

- **Severity:** High 7.0 (`CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 8 Sep 2026
- **Updated:** 9 Sep 2026
- **Also known as:** GHSA-v8pv-4842-x354

## What is CVE-2026-81192?

CVE-2026-81192 is a high-severity command injection vulnerability in open-telemetry opentelemetry-dotnet-contrib, published on 8 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

`OpenTelemetry.Resources.Host` NuGet package, which provides OpenTelemetry resource detectors for host, is affected by an untrusted search path vulnerability on macOS. Prior to version 1.16.0-beta.2, the `host.id` resource attribute detector launches the `sh` and `ioreg` executables by bare name rather than by absolute path, so both are resolved through the `PATH` environment variable. A local attacker who is less privileged than the host application, and who can influence `PATH` or write to a directory that appears in `PATH` ahead of the system directories, can have an arbitrary binary executed in the application's security context, resulting in local code execution/privilege escalation. This vulnerability only affect macOS hosts - Linux and Windows hosts are unaffected. Version 1.16.0-beta.2 contains a patch. No known workarounds are available.

Weakness: CWE-426 (Untrusted Search Path)

## Which versions are affected by CVE-2026-81192?

2 open source packages ship an affected version, including OpenTelemetry.Resources.Host.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `OpenTelemetry.Resources.Host` | NuGet | All versions | 1.16.0-beta.2 |
| `OpenTelemetry.Resources.Host` | NuGet | All versions | 1.16.0-beta.2 |

## How do I fix CVE-2026-81192?

Upgrade OpenTelemetry.Resources.Host to 1.16.0-beta.2 or later.

## Is CVE-2026-81192 being exploited?

There is no known exploitation of CVE-2026-81192 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-81192 and fix it if it is affected.

What it is: CVE-2026-81192 is a high-severity command injection vulnerability in open-telemetry opentelemetry-dotnet-contrib, published on 8 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-81192 in the wild and no public exploit code.

Affected packages and fixed versions:
- OpenTelemetry.Resources.Host (NuGet): affected all versions; fixed in 1.16.0-beta.2
- OpenTelemetry.Resources.Host (NuGet): affected all versions; fixed in 1.16.0-beta.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-81192/ (Markdown: https://insights.sbomify.com/CVE-2026-81192/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-81192
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-81192
- OSV: https://osv.dev/vulnerability/CVE-2026-81192

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-81192/
Summaries are generated and may contain mistakes; the official description above is the record.
