golang-opentelemetry-otel — security advisory
OpenTelemetry-Go is the Go implementation of OpenTelemetry. Prior to version 0.21.0, the exporters/otlp/otlplog/otlploggrpc package loads OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE, OTEL_EXPORTER_OTLP_CERTIFICATE, and related client certificate environment variables through loadEnvTLS into cfg.tlsCfg, but newGRPCDialOptions does not apply cfg.tlsCfg when creating gRPC transport credentials. The environment-only TLS path instead uses credentials.NewTLS with system roots and no configured client certificate, bypassing intended private CA pinning and mutual TLS unless the application also supplies WithTLSCredentials. A network attacker able to intercept or spoof the collector connection with a system-trusted certificate can read or alter log telemetry. This issue is fixed in version 0.21.0.
- Products
- golang-opentelemetry-otel
- Affected versions
- 1.1.0-2, 1.16.0-1, 1.31.0-4, 1.31.0-5, 1.31.0-6, 1.43.0-4build1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-81871
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:20 UTC · Revision 1
Source evidence
OpenTelemetry-Go is the Go implementation of OpenTelemetry. Prior to version 0.21.0, the exporters/otlp/otlplog/otlploggrpc package loads OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE, OTEL_EXPORTER_OTLP_CERTIFICATE, and related client certificate environment variables through loadEnvTLS into cfg.tlsCfg, but newGRPCDialOptions does not apply cfg.tlsCfg when creating gRPC transport credentials. The environment-only TLS path instead uses credentials.NewTLS with system roots and no configured client certificate, bypassing intended private CA pinning and mutual TLS unless the application also supplies WithTLSCredentials. A network attacker able to intercept or spoof the collector connection with a system-trusted certificate can read or alter log telemetry. This issue is fixed in version 0.21.0.
osv:UBUNTU-CVE-2026-81871
golang-opentelemetry-otel
Fixed versions: Not specified
golang-opentelemetry-otel
Fixed versions: Not specified
golang-opentelemetry-otel
Fixed versions: Not specified
golang-opentelemetry-otel
Fixed versions: Not specified
Complete source record
{
"id": "2317a699567b419069b87a874005ab8f861066720f02ef53cb7ff399c7dc299c",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-81871",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-81871",
"summary": "OpenTelemetry-Go is the Go implementation of OpenTelemetry. Prior to version 0.21.0, the exporters/otlp/otlplog/otlploggrpc package loads OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE, OTEL_EXPORTER_OTLP_CERTIFICATE, and related client certificate environment variables through loadEnvTLS into cfg.tlsCfg, but newGRPCDialOptions does not apply cfg.tlsCfg when creating gRPC transport credentials. The environment-only TLS path instead uses credentials.NewTLS with system roots and no configured client certificate, bypassing intended private CA pinning and mutual TLS unless the application also supplies WithTLSCredentials. A network attacker able to intercept or spoof the collector connection with a system-trusted certificate can read or alter log telemetry. This issue is fixed in version 0.21.0.",
"evidence": "osv:UBUNTU-CVE-2026-81871",
"products": [
{
"name": {
"value": "golang-opentelemetry-otel",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.0-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "golang-opentelemetry-otel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.16.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "golang-opentelemetry-otel",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.31.0-6",
"evidence": "/affected/2/versions"
},
{
"value": "1.43.0-4build1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "golang-opentelemetry-otel",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.31.0-4",
"evidence": "/affected/3/versions"
},
{
"value": "1.31.0-5",
"evidence": "/affected/3/versions"
},
{
"value": "1.31.0-6",
"evidence": "/affected/3/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-81871",
"aliases": [
"UBUNTU-CVE-2026-81871"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-opentelemetry-otel",
"purl": "pkg:deb/ubuntu/golang-opentelemetry-otel?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.1.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-81871.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-opentelemetry-otel-dev",
"binary_version": "1.1.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-opentelemetry-otel",
"purl": "pkg:deb/ubuntu/golang-opentelemetry-otel?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.16.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-81871.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-opentelemetry-otel-dev",
"binary_version": "1.16.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-opentelemetry-otel",
"purl": "pkg:deb/ubuntu/golang-opentelemetry-otel?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.31.0-6",
"1.43.0-4build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-81871.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-opentelemetry-otel-dev",
"binary_version": "1.43.0-4build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-opentelemetry-otel",
"purl": "pkg:deb/ubuntu/golang-opentelemetry-otel?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.31.0-4",
"1.31.0-5",
"1.31.0-6"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-81871.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-opentelemetry-otel-dev",
"binary_version": "1.31.0-6"
}
]
}
}
],
"modified": "2026-10-17T13:01:10.702061389Z",
"provider": "osv",
"upstream": [
"CVE-2026-81871"
],
"references": [
"https://ubuntu.com/security/CVE-2026-81871",
"https://www.cve.org/CVERecord?id=CVE-2026-81871",
"https://github.com/open-telemetry/opentelemetry-go/commit/c65d435b43e5e6b82310e6b18dd4cdcb8ac63a0c",
"https://github.com/open-telemetry/opentelemetry-go/releases/tag/exporters/otlp/otlplog/otlploggrpc/v0.21.0",
"https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-w34q-cm8f-9c5x"
]
},
"related_cves": [
{
"value": "CVE-2026-81871",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 361145,
"published_at": "2026-09-16T21:17:00+00:00"
}