5.3medium
OpenTelemetry.Exporter.OneCollector vulnerable to denial of service via unbounded HTTP error response body
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-55m9-299j-53c7
Description
OpenTelemetry.Exporter.OneCollector is a .NET exporter that sends telemetry to a OneCollector back-end over HTTP. In versions 1.15.0 and earlier, when a request to the configured back-end or collector results in an unsuccessful HTTP 4xx or 5xx response, the HttpJsonPostTransport class reads the entire response body into memory with no upper bound on the number of bytes consumed in order to include the error response in operator logs. An attacker who controls the configured endpoint, or who can intercept traffic to it via a man-in-the-middle attack, can return an arbitrarily large response body. This causes unbounded heap allocation in the consuming process, leading to high transient memory pressure, garbage-collection stalls, or an OutOfMemoryException that terminates the process. As a workaround, use network-level controls such as firewall rules, mTLS, or a service mesh to prevent man-in-the-middle attacks on the configured back-end or collector endpoint. This issue is fixed in version 1.15.1, which limits the number of bytes read from the response body in an error condition to 4 MiB.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| open-telemetry opentelemetry-dotnet-contrib | <= 1.15.0 | CVE List |
| OpenTelemetry.Exporter.OneCollector (NuGet) | before 1.15.1 | GitHub Advisory Database |
| opentelemetry opentelemetry.exporter.onecollector | up to 1.15.0 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
OpenTelemetry.Exporter.OneCollector is a .NET exporter that sends telemetry to a OneCollector back-end over HTTP. In versions 1.15.0 and earlier, when a request to the configured back-end or collector results in an unsuccessful HTTP 4xx or 5xx response, the HttpJsonPostTransport class reads the entire response body into memory with no upper bound on the number of bytes consumed in order to include the error response in operator logs. An attacker who controls the configured endpoint, or who can intercept traffic to it via a man-in-the-middle attack, can return an arbitrarily large response body. This causes unbounded heap allocation in the consuming process, leading to high transient memory pressure, garbage-collection stalls, or an OutOfMemoryException that terminates the process. As a workaround, use network-level controls such as firewall rules, mTLS, or a service mesh to prevent man-in-the-middle attacks on the configured back-end or collector endpoint. This issue is fixed in version 1.15.1, which limits the number of bytes read from the response body in an error condition to 4 MiB.
GitHub Advisory Database
Summary
When exporting telemetry to a back-end/collector over HTTP using the OpenTelemetry.Exporter.OneCollector exporter, if the request results in a unsuccessful request (i.e. HTTP 4xx or 5xx), the response is read into memory with no upper-bound on the number of bytes consumed.
This could cause memory exhaustion in the consuming application if the configured back-end/collector endpoint is attacker-controlled (or a network attacker can MitM the connection) and an extremely large body is returned by the response.
Details
The HttpJsonPostTransport class reads the response body when a non-200 HTTP status code is received when exporting telemetry to aid debugging by operators so that the error response is included in the logs emitted by the exporter.
An attacker who controls the configured endpoint, or who can intercept traffic to them (MiTM), can return an arbitrarily large response body. This causes unbounded heap allocation in the consuming process, leading to high transient memory pressure, garbage-collection stalls, or an OutOfMemoryException that terminates the process.
Impact
If an application using the OneCollector exporter is configured to use a back-end/collector endpoint that is attacker-controlled (or a network attacker can MitM the connection) and an extremely large body is returned by the response the application could have its memory exhausted and create a denial-of-service condition.
Mitigation
The application's configured back-end/collector endpoint needs to behave maliciously. If the collector/back-end is a well-behaved implementation response bodies should not be excessively large if a request error occurs.
Workarounds
Use network-level controls (firewall rules, mTLS, service mesh) to prevent Man-in-the-Middle (MitM) attacks on the configured back-end/collector endpoint.
Remediation
#4117 updates the OneCollector exporter to limit the number of bytes read from the response body in an error condition to 4MiB.
Resources
NVD (es)
OpenTelemetry.Exporter.OneCollector es un exportador .NET que envía telemetría a un back-end de OneCollector a través de HTTP. En las versiones 1.15.0 y anteriores, cuando una solicitud al back-end o colector configurado resulta en una respuesta HTTP 4xx o 5xx no exitosa, la clase HttpJsonPostTransport lee todo el cuerpo de la respuesta en la memoria sin un límite superior en el número de bytes consumidos para incluir la respuesta de error en los registros del operador. Un atacante que controla el punto final configurado, o que puede interceptar el tráfico hacia él a través de un ataque man-in-the-middle, puede devolver un cuerpo de respuesta arbitrariamente grande. Esto causa una asignación de memoria dinámica ilimitada en el proceso consumidor, lo que lleva a una alta presión de memoria transitoria, bloqueos de la recolección de basura o una OutOfMemoryException que termina el proceso. Como solución alternativa, utilice controles a nivel de red como reglas de cortafuegos, mTLS o una malla de servicios para prevenir ataques man-in-the-middle en el back-end o punto final del colector configurado. Este problema se corrige en la versión 1.15.1, que limita el número de bytes leídos del cuerpo de la respuesta en una condición de error a 4 MiB.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-41484 changed 2026-05-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-55m9-299j-53c7 changed 2026-05-08 | CC-BY-4.0 |
| NVD | CVE-2026-41484 changed 2026-10-26 | Public domain |