{"id":"CVE-2026-42348","aliases":["CVE-2026-42348","GHSA-w2jh-77fq-7gp8"],"related":[],"kind":"vulnerability","state":"published","title":"OpAMP client reads unbounded HTTP response bodies","summary":"OpenTelemetry.OpAmp.Client is the OpAMP client for OpenTelemetry .NET. Prior to 0.2.0-alpha.1, when receiving responses from the OpAMP server over HTTP, the OpAMP client allocates an unbounded buffer to read all bytes from the server, with no upper-bound on the number of bytes consumed. This could cause memory exhaustion in the consuming application if the configured OpAMP server is attacker-controlled (or a network attacker can MitM the connection) and an extremely large body is returned in the response. This vulnerability is fixed in 0.2.0-alpha.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenTelemetry.OpAmp.Client is the OpAMP client for OpenTelemetry .NET. Prior to 0.2.0-alpha.1, when receiving responses from the OpAMP server over HTTP, the OpAMP client allocates an unbounded buffer to read all bytes from the server, with no upper-bound on the number of bytes consumed. This could cause memory exhaustion in the consuming application if the configured OpAMP server is attacker-controlled (or a network attacker can MitM the connection) and an extremely large body is returned in the response. This vulnerability is fixed in 0.2.0-alpha.1.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWhen receiving responses from the OpAMP server over HTTP, the OpAMP client allocates an unbounded buffer to read all bytes from the server, with no upper-bound on the number of bytes consumed.\n\nThis could cause memory exhaustion in the consuming application if the configured OpAMP server is attacker-controlled (or a network attacker can MitM the connection) and an extremely large body is returned in the response. \n\n### Details\n\n[#2926](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2926) introduced the initial HTTP transport components which uses `ReadAsByteArrayAsync` to copy the `HttpResponseMessage.Content` into a byte array. This code path allows an unbounded read of the entire HTTP response message.\n\n### Impact\n\nIf an application using the OpAMP client is configured to use an OpAMP server that is attacker-controlled (or a network attacker can MitM the connection) and an extremely large body is returned in the response, the application could have its memory exhausted and create a denial-of-service condition.\n\n### Mitigation\n\nThe application's configured OpAMP server needs to behave maliciously. If the OpAMP server is a well-behaved implementation, response bodies should not be excessively large.\n\n### Workarounds\n\nNone known.\n\n### Remediation\n\n[#4116](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/4116) updates the OpAMP client HTTP transport to limit the maximum size of responses to 128KB.\n\n### Resources\n\n- [#2926](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2926)\n- [#4116](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/4116)\n- [CWE-789](https://cwe.mitre.org/data/definitions/789.html)","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenTelemetry.OpAmp.Client es el cliente OpAMP para OpenTelemetry .NET. Antes de 0.2.0-alpha.1, al recibir respuestas del servidor OpAMP a través de HTTP, el cliente OpAMP asigna un búfer ilimitado para leer todos los bytes del servidor, sin un límite superior en el número de bytes consumidos. Esto podría causar agotamiento de memoria en la aplicación consumidora si el servidor OpAMP configurado está controlado por un atacante (o un atacante de red puede realizar un MitM en la conexión) y se devuelve un cuerpo extremadamente grande en la respuesta. Esta vulnerabilidad se corrige en 0.2.0-alpha.1.","source":"nvd"}],"published":"2026-05-05T21:57:54.000Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-789"],"affected":[{"ranges":[{"version":"< 0.2.0-alpha.1","status":"affected"}],"vendor":"open-telemetry","product":"opentelemetry-dotnet-contrib","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.2.0-alpha.1"}],"ecosystem":"NuGet","package":"OpenTelemetry.OpAmp.Client","purl":"pkg:nuget/OpenTelemetry.OpAmp.Client","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.2.0"}],"vendor":"opentelemetry","product":"opentelemetry.opamp.client","cpe":"cpe:2.3:a:opentelemetry:opentelemetry.opamp.client:*:*:*:*:*:.net:*:*","source":"nvd"}],"references":[{"url":"https://github.com/open-telemetry/opentelemetry-dotnet-contrib/security/advisories/GHSA-w2jh-77fq-7gp8","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/4116","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42348","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/open-telemetry/opentelemetry-dotnet-contrib/commit/bf1fad4fa298ff451cda0efb0ee9c7a7eb46212a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/open-telemetry/opentelemetry-dotnet-contrib","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-13T19:25:08.216Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42348","url":"https://www.cve.org/CVERecord?id=CVE-2026-42348","licence":"CVE Terms of Use","modified":"2026-05-13T19:32:28.404Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w2jh-77fq-7gp8","url":"https://github.com/advisories/GHSA-w2jh-77fq-7gp8","licence":"CC-BY-4.0","modified":"2026-05-13T16:46:20.709Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42348","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42348","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:21.445Z","epss":{"score":0.00414,"percentile":0.27381,"date":"2026-11-30T12:00:22.000Z"}}