-
Notifications
You must be signed in to change notification settings - Fork 58
Revert "Bump go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp" #954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jpinsonneau
wants to merge
2
commits into
netobserv:main
Choose a base branch
from
jpinsonneau:revert-grpc-version
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: netobserv/netobserv-ebpf-agent
Length of output: 3043
🌐 Web query:
GHSA-hfvc-g4fc-pqhx OpenTelemetry security advisory💡 Result:
GHSA-hfvc-g4fc-pqhx is a HIGH severity security advisory (CVE-2026-39883) affecting go.opentelemetry.io/otel/sdk versions from 1.15.0 to 1.42.0. Summary: Incomplete fix for previous vulnerability GHSA-9h8m-3fm2-qjrq (CVE-2026-24051). The prior fix used an absolute path for the Darwin 'ioreg' command but left the BSD 'kenv' command using a bare name, enabling PATH hijacking on BSD (DragonFly BSD, FreeBSD, NetBSD, OpenBSD) and Solaris platforms. Root cause: In sdk/resource/host_id.go, execCommand("kenv", ...) searches $PATH if /etc/hostid does not exist (common on FreeBSD). Attack: Local attacker places malicious 'kenv' binary in $PATH earlier than system path. When OpenTelemetry resource detection runs at startup, it executes the malicious binary, leading to arbitrary code execution in the application's context. CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (HIGH) Fix: Upgrade to v1.43.0, which uses absolute path "/bin/kenv". Published: 2026-04-08. References: Official advisory at GHSA-hfvc-g4fc-pqhx, NVD https://nvd.nist.gov/vuln/detail/CVE-2026-39883, GitHub advisory database.
Citations:
🌐 Web query:
CVE-2026-39883 OpenTelemetry otel/sdk💡 Result:
CVE-2026-39883 (OpenTelemetry-Go / otel/sdk) is an incomplete fix for a prior macOS PATH-hijacking issue that leaves the BSD/Solaris path hijacking for the “kenv” command still possible. What’s vulnerable - Product/component: OpenTelemetry-Go (Go implementation of OpenTelemetry), specifically the SDK resource detection code. - Affected versions: from 1.15.0 up to (excluding) 1.43.0. - Weakness class: Untrusted Search Path (CWE-426). - Mechanism: the BSD kenv command is executed without using an absolute path, so an attacker who can influence $PATH (e.g., place a malicious “kenv” earlier in PATH) can get the attacker’s binary executed when host ID detection runs on BSD or Solaris systems where /etc/hostid is absent. Impact - Local attacker (requires local access / ability to manipulate PATH in the running context) can potentially execute attacker-controlled code, compromising the running process. Fix / mitigation - Upgrade OpenTelemetry-Go / otel/sdk to 1.43.0 or later. Suggested practical checks - Find any deployed services using go.opentelemetry.io/otel/sdk (or github.com/open-telemetry/opentelemetry-go/sdk/resource) with versions < 1.43.0. - If upgrading immediately isn’t possible, ensure PATH can’t be influenced by lower-privileged attackers and avoid running the vulnerable host-ID detection in environments where PATH injection is feasible.
Citations:
This downgrade reintroduces a known
otel/sdkvulnerability.go.opentelemetry.io/otel/sdkv1.42.0 is affected by GHSA-hfvc-g4fc-pqhx (CVE-2026-39883), a BSD/Solaris PATH-hijack issue where the unabsolutekenvcommand path allows local code execution. Upgrade to v1.43.0 fixes it. If the goal is only to test the gRPC regression, keep the downgrade narrower or document why accepting this vulnerability is acceptable.🧰 Tools
🪛 OSV Scanner (2.3.5)
[HIGH] 131-131: go.opentelemetry.io/otel/sdk 1.42.0: opentelemetry-go: BSD kenv command not using absolute path enables PATH hijacking
(GHSA-hfvc-g4fc-pqhx)
🤖 Prompt for AI Agents