OpenTelemetry-Go Contrib has DoS vulnerability in otelhttp due to unbound cardinality metrics
OpenTelemetry-Go Contrib is a collection of third-party packages for OpenTelemetry-Go. A handler wrapper out of the box adds labels `http.user_agent` and `http.method` that have unbound cardinality. It leads to the server's potential memory exhaustion when many malicious requests are sent to it. HTTP header User-Agent or HTTP method for requests can be easily set by an attacker to be random and long. The library internally uses `httpconv.ServerRequest` that records every value for HTTP `method` and `User-Agent`. In order to be affected, a program has to use the `otelhttp.NewHandler` wrapper and not filter any unknown HTTP methods or User agents on the level of CDN, LB, previous middleware, etc. Version 0.44.0 fixed this issue when the values collected for attribute `http.request.method` were changed to be restricted to a set of well-known values and other high cardinality attributes were removed. As a workaround to stop being affected, `otelhttp.WithFilter()` can be used, but it requires manual careful configuration to not log certain requests entirely. For convenience and safe usage of this library, it should by default mark with the label `unknown` non-standard HTTP methods and User agents to show that such requests were made but do not increase cardinality. In case someone wants to stay with the current behavior, library API should allow to enable it.
- BDU:2023-07911
- GHSA-5r5m-65gx-7vrh
- GHSA-cg3q-j54f-5p7p
- GHSA-rcjv-mgp8-qvmr
- GO-2022-0322
- GO-2023-1546
- GO-2023-2113
- openSUSE-SU-2024:0211-1
- openSUSE-SU-2024:0220-1
- openSUSE-SU-2024:13360-1
- openSUSE-SU-2024:13495-1
- openSUSE-SU-2024:14232-1
- openSUSE-SU-2024:14320-1
- openSUSE-SU-2024:14321-1
- RHSA-2024:4118
- SUSE-SU-2024:3188-1
- SUSE-SU-2024:3221-1
- SUSE-SU-2024:3266-1
- SUSE-SU-2024:3267-1
- SUSE-SU-2024:3288-1
- Published
- Oct 12, 2023
- Updated
- Jun 17, 2026
- EPSS
- 1.4% · 71th percentile
- CWE
- CWE-770
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
30
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.4%
CNA vs NVD score
- NVD
- 7.5
- CNA · GitHub_M
- 7.5
- agree
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| opentelemetry | opentelemetry | cpe:2.3:a:opentelemetry:opentelemetry |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- opentelemetry opentelemetrybefore 0.44.0
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
open-telemetry opentelemetry-go-contrib
- < 0.44.0affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Go | github.com/prometheus/client_golang | before 1.11.1 | 1.11.1 |
| Go | go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego | from 0.38.0 · before 0.39.0 | 0.39.0 |
| Go | go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful | before 0.44.0 | 0.44.0 |
| Go | go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin | before 0.44.0 | 0.44.0 |
| Go | go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux | before 0.44.0 | 0.44.0 |
| Go | go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho | before 0.44.0 | 0.44.0 |
| Go | go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron | before 0.44.0 | 0.44.0 |
| Go | go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace | before 0.44.0 | 0.44.0 |
| Go | go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp | from 0.38.0 · before 0.39.0 | 0.39.0 |
| Go | go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp | before 0.44.0 | 0.44.0 |
| openSUSE:Tumbleweed | caddy | before 2.7.6-1.1 | 2.7.6-1.1 |
| openSUSE:Tumbleweed | containerd | before 1.7.21-1.1 | 1.7.21-1.1 |
| openSUSE:Tumbleweed | docker | before 26.1.5_ce-2.1 | 26.1.5_ce-2.1 |
| openSUSE:Tumbleweed | golang-github-prometheus-prometheus | before 2.53.0-3.1 | 2.53.0-3.1 |
| openSUSE:Tumbleweed | teleport | before 14.1.1-1.1 | 14.1.1-1.1 |
| Red Hat:ceph_storage:5.3::el8 | ceph | before 2:16.2.10-266.el8cp | 2:16.2.10-266.el8cp |
| Red Hat:ceph_storage:5.3::el8 | ceph-ansible | before 0:6.0.28.8-1.el8cp | 0:6.0.28.8-1.el8cp |
| Red Hat:ceph_storage:5.3::el8 | ceph-base | before 2:16.2.10-266.el8cp | 2:16.2.10-266.el8cp |
| Red Hat:ceph_storage:5.3::el8 | ceph-base-debuginfo | before 2:16.2.10-266.el8cp | 2:16.2.10-266.el8cp |
| Red Hat:ceph_storage:5.3::el8 | ceph-common | before 2:16.2.10-266.el8cp | 2:16.2.10-266.el8cp |
| Red Hat:ceph_storage:5.3::el8 | ceph-common-debuginfo | before 2:16.2.10-266.el8cp | 2:16.2.10-266.el8cp |
| Red Hat:ceph_storage:5.3::el8 | ceph-debugsource | before 2:16.2.10-266.el8cp | 2:16.2.10-266.el8cp |
| Red Hat:ceph_storage:5.3::el8 | ceph-fuse | before 2:16.2.10-266.el8cp | 2:16.2.10-266.el8cp |
| Red Hat:ceph_storage:5.3::el8 | ceph-fuse-debuginfo | before 2:16.2.10-266.el8cp | 2:16.2.10-266.el8cp |
+96
Same product
opentelemetry: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-29181OpenTelemetry-Go multi-value `baggage` header extraction causes excessive allocations (remote dos amplification)30Monitor
- CVE-2023-47108DoS vulnerability in otelgrpc (uncontrolled resource consumption) due to unbound cardinality metrics30Monitor
- CVE-2023-43810opentelemetry-instrumentation Denial of Service vulnerability due to unbound cardinality metrics30Monitor
- CVE-2026-39883OpenTelemetry-Go has an incomplete fix for CVE-2026-24051: BSD kenv command not using absolute path enables PATH hijacking29Monitor
- CVE-2026-24051OpenTelemetry-Go Affected by Arbitrary Code Execution via PATH Hijacking28Monitor
- CVE-2026-41078OpenTelemetry dotnet: Potential memory exhaustion via unbounded pooled-list sizing in Jaeger exporter conversion path23Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Go:github.com/prometheus/client_golang | 1.11.1 | Package registry (OSV) |
| Go:go.opentelemetry.io/contrib/instrumentation/github.com/astaxie/beego/otelbeego | 0.39.0 | Package registry (OSV) |
| Go:go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful | 0.44.0 | Package registry (OSV) |
| Go:go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin | 0.44.0 | Package registry (OSV) |
| Go:go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux | 0.44.0 | Package registry (OSV) |
| Go:go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho | 0.44.0 | Package registry (OSV) |
| Go:go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron | 0.44.0 | Package registry (OSV) |
| Go:go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace | 0.44.0 | Package registry (OSV) |
| Go:go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp | 0.39.0 | Package registry (OSV) |
| Go:go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp | 0.44.0 | Package registry (OSV) |
| opensuse:caddy | 2.8.4-bp155.2.3.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:containerd | 1.7.21-150000.117.1 · openSUSE:Leap Micro 5.5 | Package registry (OSV) |
| opensuse:docker | 26.1.5_ce-150000.212.1 · openSUSE:Leap Micro 5.5 | Package registry (OSV) |
| opensuse:golang-github-prometheus-prometheus | 2.45.6-150100.4.20.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:spacecmd | 5.0.9-150000.3.124.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| red hat:ceph | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-base | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-base-debuginfo | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-common | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-common-debuginfo | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-debugsource | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-fuse-debuginfo | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-grafana-dashboards | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-immutable-object-cache-debuginfo | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-mds-debuginfo | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-mgr | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| red hat:ceph-mgr-cephadm | 2:16.2.10-266.el8cp · Red Hat:ceph_storage:5.3::el8 | Package registry (OSV) |
| suse:caddy | 2.8.4-bp155.2.3.1 · SUSE:Package Hub 15 SP5 | Package registry (OSV) |
| suse:containerd | 1.7.21-150000.117.1 · SUSE:Linux Enterprise Micro 5.3 | Package registry (OSV) |
| suse:containerd | 1.7.21-16.94.1 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
+10
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2023-4710829 days apartDoS vulnerability in otelgrpc (uncontrolled resource consumption) due to unbound cardinality metrics30Monitor
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-770 · Allocation of Resources Without Limits or ThrottlingCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- FloodingCAPEC-125likelihood: High · Medium
- Excessive AllocationCAPEC-130likelihood: Medium · Medium
- XML Ping of the DeathCAPEC-147likelihood: Low · Medium
- Exponential Data ExpansionCAPEC-197likelihood: High · Medium
- Serialized Data Parameter BlowupCAPEC-229likelihood: High · High
- Serialized Data with Nested PayloadsCAPEC-230likelihood: Medium · High
- Oversized Serialized Data PayloadsCAPEC-231likelihood: Medium · High
- HTTP DoSCAPEC-469Low
ATT&CK techniques
- Network Denial of Service:Direct Network FloodT1498.001
- Network Denial of Service:Reflection AmplificationT1498.002
- Endpoint Denial of ServiceT1499
- Endpoint Denial of Service: OS Exhaustion FloodT1499.001
- Endpoint Denial of Service:Service Exhaustion FloodT1499.002
- Endpoint Denial of Service:Application Exhaustion FloodT1499.003
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- github.com/advisories/GHSA-cg3q-j54f-5p7p
- github.com/open-telemetry/opentelemetry-go-contrib/blob/5f7e6ad5a49b45df45f61a1deb29d7f1158032df/instrumentation/net/http/otelhttp/handler.go#L63-L65
- github.com/open-telemetry/opentelemetry-go-contrib/pull/4277
- github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v1.19.0
- github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-5r5m-65gx-7vrh
- github.com/open-telemetry/opentelemetry-go-contrib/security/advisories/GHSA-rcjv-mgp8-qvmr
- github.com/open-telemetry/opentelemetry-go/blob/38e1b499c3da3107694ad2660b3888eee9c8b896/semconv/internal/v2/http.go#L223
- github.com/open-telemetry/opentelemetry-go/blob/v1.12.0/semconv/internal/v2/http.go#L159
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2UTRJ54INZG3OC2FTAN6AFB2RYNY2GAD/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.