---
id: "CVE-2026-58268"
kind: "vulnerability"
aliases: ["CVE-2026-58268", "GHSA-pg59-5vwg-4jxq", "GO-2026-6550"]
title: "SIPGO: DoS via unvalidated Content-Length in the stream parser in github.com/emiago/sipgo"
severity: "high"
cvss: 7.5
epss: 0.00609
exploited: false
status: "open"
category: "package"
products: [{"name": "github.com/emiago/sipgo", "fixed": ["1.4.1"], "affected": "< 1.4.1", "ecosystem": "go"}]
ecosystems: ["go"]
tags: ["go", "package", "self-hosted", "sip", "voip"]
not_affected_if: ["no-stream-listeners", "udp-only-transport"]
published_at: "2026-09-22T20:17:03+00:00"
first_seen_at: "2026-10-23T19:13:08+00:00"
updated_at: "2026-10-23T21:45:33+00:00"
sources: [{"source": "govuln", "url": "https://pkg.go.dev/vuln/GO-2026-6550", "first_seen_at": "2026-10-23T19:13:08+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-58268", "first_seen_at": "2026-10-23T19:13:43+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-58268", "first_seen_at": "2026-10-23T19:35:23+00:00"}]
---

# SIPGO: DoS via unvalidated Content-Length in the stream parser in github.com/emiago/sipgo

sipgo is a Go library for building SIP services, and its stream parser allocates a body buffer based on the client-declared Content-Length before checking the maximum message length. An unauthenticated remote peer can send a single oversized message over TCP, TLS, WS or WSS and make the process allocate large amounts of memory, causing denial of service.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- go:github.com/emiago/sipgo affected < 1.4.1 fixed 1.4.1

## How to check

Check whether go.mod lists github.com/emiago/sipgo below v1.4.1 (run: go list -m github.com/emiago/sipgo).

## Fix

Upgrade github.com/emiago/sipgo to v1.4.1 or later.

## Timeline

- 2026-10-23T19:13:08+00:00 govuln https://pkg.go.dev/vuln/GO-2026-6550
- 2026-10-23T19:13:43+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2026-58268
- 2026-10-23T19:35:23+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-58268

## From the sources

SIPGO is a library for writing SIP services in the GO language. Prior to 1.4.1, ParserStream.parseSingle in sip/parser_stream.go allocates a SIP body buffer from the client-controlled Content-Length header before ParseMaxMessageLength is enforced. An unauthenticated peer can send a stream-transport message over TCP, TLS, WS, or WSS with an oversized declared length, causing excessive memory allocation and denial of service before the body is read. This issue is fixed in version 1.4.1.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
