Envoy Heap Buffer Overflow in TcpStatsdSink
Envoy is an open source edge and service proxy designed for cloud-native applications. From 1.34.0 until 1.35.13, 1.36.9, 1.37.5, and 1.38.3, a vulnerability exists in Envoy's TCP StatsD sink (TcpStatsdSink), where the thread-local flusher buffer can be overflowed by exceptionally long statistic names (e.g., >16KiB). During formatting, TcpStatsdSink reserves a single contiguous memory slice of 16KiB (FLUSH_SLICE_SIZE_BYTES). If formatting a single metric exceeds the remaining capacity, the flusher initiates a buffer rotation but incorrectly continues to allocate another fixed 16KiB slice. If an attacker can trigger a statistic name longer than 16KiB—for example, by sending an HTTP or gRPC request with an extremely long request path (:path) that is recorded by the grpc_stats filter configured with stats_for_all_methods: true—the flusher will attempt to copy the metric name using memcpy operations beyond the allocated heap buffer boundaries. This leads to a heap write overflow, which can cause immediate denial-of-service (process crash) or potential remote code execution (RCE). This vulnerability is fixed in 1.35.13, 1.36.9, 1.37.5, and 1.38.3.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-48706
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 07:02 UTC · Revision 1
Source evidence
Envoy Heap Buffer Overflow in TcpStatsdSink
core-osv · Original sourcePublished 26 Jun 2026, 17:38 UTC
Envoy is an open source edge and service proxy designed for cloud-native applications. From 1.34.0 until 1.35.13, 1.36.9, 1.37.5, and 1.38.3, a vulnerability exists in Envoy's TCP StatsD sink (TcpStatsdSink), where the thread-local flusher buffer can be overflowed by exceptionally long statistic names (e.g., >16KiB). During formatting, TcpStatsdSink reserves a single contiguous memory slice of 16KiB (FLUSH_SLICE_SIZE_BYTES). If formatting a single metric exceeds the remaining capacity, the flusher initiates a buffer rotation but incorrectly continues to allocate another fixed 16KiB slice. If an attacker can trigger a statistic name longer than 16KiB—for example, by sending an HTTP or gRPC request with an extremely long request path (:path) that is recorded by the grpc_stats filter configured with stats_for_all_methods: true—the flusher will attempt to copy the metric name using memcpy operations beyond the allocated heap buffer boundaries. This leads to a heap write overflow, which can cause immediate denial-of-service (process crash) or potential remote code execution (RCE). This vulnerability is fixed in 1.35.13, 1.36.9, 1.37.5, and 1.38.3.
osv:CVE-2026-48706
Complete source record
{
"id": "3fd3532536f872009bee6b4553ec732a212c3b0ae89225dfd675f51c6e7063cc",
"url": "https://osv.dev/vulnerability/CVE-2026-48706",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Envoy Heap Buffer Overflow in TcpStatsdSink",
"summary": "Envoy is an open source edge and service proxy designed for cloud-native applications. From 1.34.0 until 1.35.13, 1.36.9, 1.37.5, and 1.38.3, a vulnerability exists in Envoy's TCP StatsD sink (TcpStatsdSink), where the thread-local flusher buffer can be overflowed by exceptionally long statistic names (e.g., >16KiB). During formatting, TcpStatsdSink reserves a single contiguous memory slice of 16KiB (FLUSH_SLICE_SIZE_BYTES). If formatting a single metric exceeds the remaining capacity, the flusher initiates a buffer rotation but incorrectly continues to allocate another fixed 16KiB slice. If an attacker can trigger a statistic name longer than 16KiB—for example, by sending an HTTP or gRPC request with an extremely long request path (:path) that is recorded by the grpc_stats filter configured with stats_for_all_methods: true—the flusher will attempt to copy the metric name using memcpy operations beyond the allocated heap buffer boundaries. This leads to a heap write overflow, which can cause immediate denial-of-service (process crash) or potential remote code execution (RCE). This vulnerability is fixed in 1.35.13, 1.36.9, 1.37.5, and 1.38.3.",
"evidence": "osv:CVE-2026-48706",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-48706",
"aliases": [
"BIT-envoy-2026-48706",
"CVE-2026-48706",
"GHSA-7q3f-gwg7-j8g4"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/envoyproxy/envoy",
"type": "GIT",
"events": [
{
"introduced": "d7809ba2b07fd869d49bfb122b27f6a7977b4d94"
},
{
"fixed": "adb998f2875986005be294d10231a9c9a497e30d"
},
{
"introduced": "63ee0dc79dce88117c6bd2df5a742f8eb67ea980"
},
{
"fixed": "57198c441a298a75097c690726d90974549a9778"
},
{
"introduced": "6d9bb7d9a85d616b220d1f8fe67b61f82bbdb8d3"
},
{
"fixed": "f97695a50e11f5ff6719e129a466bf9204b64a7f"
},
{
"introduced": "f1dd21b16c244bda00edfb5ffce577e12d0d2ec2"
},
{
"fixed": "0ebfcfe5b0484b89ca85b761da9e05ce75dbda8d"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:envoyproxy:envoy:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.34.0"
},
{
"fixed": "1.35.13"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:envoyproxy:envoy:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.36.0"
},
{
"fixed": "1.36.9"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:envoyproxy:envoy:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.37.0"
},
{
"fixed": "1.37.5"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:envoyproxy:envoy:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.38.0"
},
{
"fixed": "1.38.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v1.38.2",
"v1.37.4",
"v1.36.8",
"v1.35.12",
"v1.38.1",
"v1.37.3",
"v1.36.7",
"v1.35.11",
"v1.38.0",
"v1.37.2",
"v1.36.6",
"v1.35.10",
"v1.37.1",
"v1.36.5",
"v1.35.9",
"v1.37.0",
"v1.36.4",
"v1.35.8",
"v1.36.3",
"v1.35.7",
"v1.35.6",
"v1.36.2",
"v1.36.1",
"v1.35.5",
"v1.36.0",
"v1.35.4",
"v1.35.3",
"v1.35.2",
"v1.35.1",
"v1.35.0",
"v1.34.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48706.json"
}
}
],
"modified": "2026-10-28T02:30:50.025000599Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48706.json",
"https://github.com/envoyproxy/envoy/security/advisories/GHSA-7q3f-gwg7-j8g4",
"https://nvd.nist.gov/vuln/detail/CVE-2026-48706"
],
"provider_metadata": {
"cwe_ids": [
"CWE-120"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48706.json"
}
},
"related_cves": [
{
"value": "CVE-2026-48706",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518579,
"published_at": "2026-06-26T17:38:23.581+00:00"
}