Vulnerabilities in pkg:golang/github.com/emiago/sipgo
PACKAGECVE-2026-77322 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting SIPGO libraries in the Go ecosystem. The issue involves dos via unvalidated websocket frame length. Remediation is available by upgrading affected packages to version 1.4.3.
pkg:golang/github.com/emiago/sipgo
Vulnerability advisories affecting package pkg:golang/github.com/emiago/sipgo. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8h6x-h86x-75wh | CVE-2026-77322 | HIGH | SIPGO: DoS via unvalidated WebSocket frame length |
| GHSA-pg59-5vwg-4jxq | CVE-2026-58268 | HIGH | SIPGO: DoS via unvalidated Content-Length in the stream parser |
| GHSA-c623-f998-8hhv | CVE-2025-68274 | HIGH | SIPGO is Vulnerable to Response DoS via Nil Pointer Dereference |
CVE-2026-77322 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-77322
To remediate this vulnerability, upgrade all affected SIPGO dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/emiago/sipgo to 1.4.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/emiago/sipgo
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-77322, inspect your project dependencies for SIPGO:
inspect dependencies for github.com/emiago/sipgo
Analyze the terminal output to locate any version of SIPGO in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. In SIPGO, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-77322 Affected SIPGO Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/emiago/sipgo
|
Go |
< 1.4.3
|
1.4.3
|
References
Frequently Asked Questions
What is CVE-2026-77322?
Which SIPGO versions are affected?
What version fixes CVE-2026-77322?
Is github.com/emiago/sipgo affected?
What is the CVSS score of CVE-2026-77322?
What CWE is associated with CVE-2026-77322?
How can I check Go dependencies for CVE-2026-77322?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8h6x-h86x-75wh",
"modified" : "2026-09-22T20:34:30Z",
"published" : "2026-09-22T20:34:30Z",
"aliases" : [ "CVE-2026-77322" ],
"summary" : "SIPGO: DoS via unvalidated WebSocket frame length",
"details" : "### Summary\n\nThe WebSocket transport allocates a buffer from the frame payload length before validating its size, which can lead to an unauthenticated DoS.\n\n### Details\n\n`WSConnection.Read` allocates a buffer from the declared WebSocket frame length before reading the payload (https://github.com/emiago/sipgo/blob/v1.4.0/sip/transport_ws.go#L400):\n\n```go\ndata := make([]byte, header.Length) // header.Length is client-controlled, up to 2^63-1 (int64)\n```\n\n- `NextFrame()` reads only the frame header and never checks the length: `wsutil.NewReader` is created with no [`MaxFrameSize`](https://pkg.go.dev/github.com/gobwas/ws@v1.3.2/wsutil#Reader.MaxFrameSize) (`0` = unlimited). `ParseMaxMessageLength` applies only downstream, not here.\n- A value above the max slice size (e.g. `2^63-1`) panics `make`. sipgo does not recover from this panic, so it crashes the whole server process.\n\n### PoC\n\nTested on emiago/sipgo v1.4.0 (latest).\n\nAfter a normal WebSocket handshake, send one masked text frame consisting of the header only (no payload), declaring a huge length. The allocation runs as soon as the header is read.\n\n```\n0x81 FIN + text opcode\n0xFF MASK bit + length marker 127 (8-byte length follows)\n0x7F FF FF FF FF FF FF FF declared length = 2^63-1 -> make panics (crash)\n<4-byte masking key>\n(no payload)\n```\n\nThis crashes the server process:\n\n```\npanic: runtime error: makeslice: len out of range\n\ngoroutine 23 [running]:\ngithub.com/emiago/sipgo/sip.(*WSConnection).Read(...)\n /path/to/pkg/mod/github.com/emiago/sipgo@v1.4.0/sip/transport_ws.go:400 +0x2df\ngithub.com/emiago/sipgo/sip.(*TransportWS).readConnection(...)\n /path/to/pkg/mod/github.com/emiago/sipgo@v1.4.0/sip/transport_ws.go:194 +0x266\ncreated by github.com/emiago/sipgo/sip.(*TransportWS).initConnection in goroutine 21\n /path/to/pkg/mod/github.com/emiago/sipgo@v1.4.0/sip/transport_ws.go:167 +0x268\n```\n\n### Suggested Fix\n\nSet [`MaxFrameSize`](https://pkg.go.dev/github.com/gobwas/ws@v1.3.2/wsutil#Reader.MaxFrameSize) on the `wsutil.NewReader`.\n\n### Impact\n\nUnauthenticated DoS. Any service using `sipgo` with a WS/WSS transport can be crashed by a single frame (panic), or forced to run out of memory.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/emiago/sipgo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.4.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/emiago/sipgo/security/advisories/GHSA-8h6x-h86x-75wh"
}, {
"type" : "WEB",
"url" : "https://github.com/emiago/sipgo/commit/769e4bc958376e2363566c8f7042202b410becdc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/emiago/sipgo"
}, {
"type" : "WEB",
"url" : "https://github.com/emiago/sipgo/releases/tag/v1.4.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-789" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-22T20:34:30Z",
"nvd_published_at" : null
}
}