Vulnerability in github.com/emiago/sipgo (CVE-2026-77322)
Summary
Vulnerability in github.com/emiago/sipgo (CVE-2026-77322). Risk of unauthorized operations or information disclosure. Exploitable via WSConnection.Read. Mitigation: upgrade to 1.4.3 or later.
Original description
The description as published by the source.
Summary
The WebSocket transport allocates a buffer from the frame payload length before validating its size, which can lead to an unauthenticated DoS.
Details
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):
data := make([]byte, header.Length) // header.Length is client-controlled, up to 2^63-1 (int64)
NextFrame()reads only the frame header and never checks the length:wsutil.NewReaderis created with noMaxFrameSize(0= unlimited).ParseMaxMessageLengthapplies only downstream, not here.- A value above the max slice size (e.g.
2^63-1) panicsmake. sipgo does not recover from this panic, so it crashes the whole server process.
PoC
Tested on emiago/sipgo v1.4.0 (latest).
After 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.
0x81 FIN + text opcode
0xFF MASK bit + length marker 127 (8-byte length follows)
0x7F FF FF FF FF FF FF FF declared length = 2^63-1 -> make panics (crash)
<4-byte masking key>
(no payload)
This crashes the server process:
panic: runtime error: makeslice:…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-77322 has been found in github.com/emiago/sipgo.
Attackers can target a specific entry point like WSConnection.Read over the network to misuse the product.
Risk of unauthorized operations or information disclosure. CVSS score: 7.5/10.
What to do: upgrade github.com/emiago/sipgo to 1.4.3 or later.
If unsure, ask your IT team or search "github.com/emiago/sipgo CVE-2026-77322" on the vendor's site.
CVE-2026-77322 (github.com/emiago/sipgo) — CWE-789 / CVSS v3 7.5
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: WSConnection.Read / wsutil.NewReader / MaxFrameSize / ParseMaxMessageLength
Patched: 1.4.3 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-789) exists in github.com/emiago/sipgo. Attackers reach the vulnerable code path via WSConnection.Read without authentication.
Check the vendor advisory for the affected versions of github.com/emiago/sipgo. Attack surface: WSConnection.Read / wsutil.NewReader / MaxFrameSize / ParseMaxMessageLength.
Severity: High (CVSS 7.5/10). Risk of unauthorized operations or information disclosure.
Update to 1.4.3.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/emiago/sipgo' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'github.com/emiago/sipgo' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/emiago/sipgoを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/emiago/sipgo to 1.4.3ステージング環境で 1.4.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
References
- web github.com
- web github.com
- web github.com
- web github.com