GHSA-28gm-jrmw-xx93: SIPSorcery: Malformed UDP packet on the RTP/ICE socket can remotely terminate a media session (DoS)
Impact
A single malformed inbound UDP packet on the RTP/ICE socket can remotely terminate an active RTP or WebRTC media session. The packet receive handler indexes packet (and STUN attribute) bytes without sufficient length checks and throws, and the UDP receive loop converted any such exception into a channel Close rather than dropping the packet. One small, unauthenticated packet therefore ends the media session.
This is reachable during ICE connectivity checks — before the DTLS handshake and before any STUN MESSAGE-INTEGRITY verification. Because the RTP/ICE port is shared/advertised in the ICE candidates, a peer or on-path attacker can reach it (exposure is lower for a blind off-path attacker that must first learn the ephemeral port). Impact is availability only — no loss of confidentiality or integrity.
Affected versions
NuGet package SIPSorcery <= 10.0.8.
Patches
Fixed in 10.0.9.
Root cause
Two issues combine:
1. Unchecked indexing of untrusted bytes.
- RTPChannel.OnRTPPacketReceived read packet[1] after only checking the packet was non-empty, so a 1-byte packet threw IndexOutOfRangeException.
- STUNAttribute.ParseMessageAttributes passed a null/short value to the typed attribute parsers, and STUNXORAddressAttribute (and the non-XOR STUNAddressAttribute) then read attributeValue[1], AsSpan(2) and AsSpan(4) with no length check. A STUN message carrying an XOR-MAPPED-ADDRESS, XOR-PEER-ADDRESS or XOR-RELAYED-ADDRESS attribute of length 0–7 threw (NullReferenceException for length 0, IndexOutOfRangeException/ArgumentOutOfRangeException for 1–7).
2. The UDP receive loop closed the channel on any exception. The catch-all in UdpReceiver.EndReceiveFrom called Close(), tearing down the channel, instead of dropping the offending packet and continuing. This was systemic: any unhandled exception anywhere in the packet pipeline (STUN, RTP, RTCP, DTLS demux, SRTP, TURN) became a channel teardown.
Fix
- UdpReceiver.EndReceiveFrom: a non-socket exception now logs
Details
Original advisory: https://github.com/advisories/GHSA-28gm-jrmw-xx93
Referenced CVEs
| CVE | CSIRTS overview | External |
|---|---|---|
| CVE-2026-54632 | coverage & exploitation status | NVD · CVE.org |
More from GitHub Security Advisories
- mediumGHSA-jr6p-8pjj-mfx6: Capsule has an incomplete fix of CVE-2026-22872: TenantResource RawItems and Generators s…2026-07-31
- mediumGHSA-68cj-mvg9-rgm2: Capsule: CapsuleConfiguration NodeMetadata regex fields lack webhook validation, allowing…2026-07-31
- mediumGHSA-ff84-5f28-78qj: re2: Out-of-bounds heap read in `exec`/`test`/`match` via attacker-influenced `lastIndex`…2026-07-31
- mediumGHSA-6hxr-mr5r-9836: re2: Global `String.prototype.match` with an empty-matchable pattern never advances → inf…2026-07-31
- mediumGHSA-x83g-979r-f5fh: Sylius Mollie Plugin has unauthenticated IDOR that leaks order token and customer PII2026-07-31