CVE-2026-123805
SIPSorcery: Unbounded SCTP SACK gap/duplicate counts cause out-of-bounds read that kills the data-channel receive thread (DoS)
SIPSorcery is a WebRTC, SIP, and VoIP library for C# and .NET. Prior to 10.0.14, SctpSackChunk.ParseChunk reads the numGapAckBlocks and numDuplicateTSNs fields from an attacker-controlled SCTP SACK chunk without checking that the corresponding entries fit the declared chunk length. A negotiated WebRTC peer can send a checksum-valid malformed SACK chunk that drives the parser beyond the 262144-byte receive buffer. The resulting IndexOutOfRangeException bypasses the recoverable ApplicationException handler in RTCSctpTransport.DoReceive, causing the generic handler to exit the dedicated receive loop and permanently terminate the SCTP association and all data channels. This issue is fixed in 10.0.14.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
SIPSorcery: Unbounded SCTP SACK gap/duplicate counts cause out-of-bounds read that kills the data-channel receive thread (DoS)
SIPSorcery is a WebRTC, SIP, and VoIP library for C# and .NET. Prior to 10.0.14, SctpSackChunk.ParseChunk reads the numGapAckBlocks and numDuplicateTSNs fields from an attacker-controlled SCTP SACK chunk without checking that the corresponding entries fit the declared chunk length. A negotiated WebRTC peer can send a checksum-valid malformed SACK chunk that drives the parser beyond the 262144-byte receive buffer. The resulting IndexOutOfRangeException bypasses the recoverable ApplicationException handler in RTCSctpTransport.DoReceive, causing the generic handler to exit the dedicated receive loop and permanently terminate the SCTP association and all data channels. This issue is fixed in 10.0.14.
- Record
CVE-2026-123805- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125, CWE-755
- Updated
- 2026-11-09
EUVDEUVD-2026-120398
7.5
SIPSorcery is a WebRTC, SIP, and VoIP library for C# and .NET. Prior to 10.0.14, SctpSackChunk.ParseChunk reads the numGapAckBlocks and numDuplicateTSNs fields from an attacker-controlled SCTP SACK chunk without checking that the corresponding entries fit the declared chunk length. A negotiated WebRTC peer can send a checksum-valid malformed SACK chunk that drives the parser beyond the 262144-byte receive buffer. The resulting IndexOutOfRangeException bypasses the recoverable ApplicationException handler in RTCSctpTransport.DoReceive, causing the generic handler to exit the dedicated receive loop and permanently terminate the SCTP association and all data channels. This issue is fixed in 10.0.14.
- Record
EUVD-2026-120398- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-09
GitHub AdvisoriesGHSA-jwjp-4649-v8jp
7.5
SIPSorcery vulnerable to Denial of Service via out-of-bounds read in SCTP SACK chunk parsing
Summary
SctpSackChunk.ParseChunk reads the numGapAckBlocks and numDuplicateTSNs fields (each up to 65535) directly from an attacker-controlled SCTP SACK chunk and loops that many times reading 4 bytes per iteration, with no validation of the counts against the chunk length or the receive buffer. A single crafted SACK chunk from a negotiated WebRTC peer forces reads past the end of the 262144-byte receive buffer, raising IndexOutOfRangeException, which is not caught by the recoverable handler and terminates the dedicated SCTP receive thread — permanently killing the SCTP association and all data channels.
Root Cause
src/SIPSorcery/net/SCTP/Chunks/SctpSackChunk.cs:
ushort numGapAckBlocks = NetConvert.ParseUInt16(buffer, startPosn + 8);(:141)ushort numDuplicateTSNs = NetConvert.ParseUInt16(buffer, startPosn + 10);(:142)- gap-ack loop (:146) and duplicate-TSN loop (:154) index the buffer via
NetConvert.ParseUInt16/32(buffer[posn], no bounds check —sys/Net/NetConvert.cs:30,41).SctpPacket.ParseChunks(SctpPacket.cs:195-203) only validateschunkLength >= 4andposn+chunkLength <= length; the counts inside the value are never checked.RTCSctpTransport.DoReceivecallsSctpPacket.Parse(recvBuffer, 0, bytesRead)on a reusedrecvBuffer = new byte[262144].
Impact
IndexOutOfRangeException is a SystemException, not ApplicationException, so the recoverable catch (ApplicationException) { … continue; } at RTCSctpTransport.cs:345 is skipped and control falls to the generic catch (Exception) { … break; } at :356. The break exits the receive loop, DoReceive returns, and the dedicated _receiveThread = new Thread(DoReceive) (:173, started once) exits with no restart → the SCTP association and every data channel are permanently dead (denial of service).
Proof of Concept
A negotiated WebRTC peer (post-DTLS) sends a checksum-valid SCTP packet: 12-byte common header + a SACK chunk (type 3) with chunkLength=16, numGapAckBlocks=0xFFFF, numDuplicateTSNs=0xFFFF. CRC32C is attacker-computable. The gap-ack loop reaches buffer[262144] on a 262144-byte array (valid indices 0..262143) → IndexOutOfRangeException.
Attack Chain
- Entry: post-DTLS negotiated peer sends a checksum-valid SCTP packet with a SACK chunk (
chunkLength=16,numGapAckBlocks=0xFFFF). Guard:VerifyChecksum(CRC32C). Bypass: CRC32C is computable by the sender. - Processing:
DoReceive(RTCSctpTransport.cs:286) reads into reusedrecvBuffer(262144 bytes, :280) →SctpPacket.Parse(recvBuffer, 0, bytesRead)(:302) →ParseChunks→ SACK dispatch (SctpChunk.Parse:340-341) →SctpSackChunk.ParseChunk. Guard:ParseChunkschecks onlychunkLength>=4andposn+chunkLength<=length(SctpPacket.cs:195-203). Bypass:chunkLength=16is well-formed; the counts are never validated. - Sink: gap-ack loop (SctpSackChunk.cs:146) calls
NetConvert.ParseUInt16(buffer, reportPosn)withreportPosnstarting atstartPosn(16)+FIXED_PARAMETERS(12)=28, climbing+4each iteration. Guard: none on the count. Bypass:NetConvert.ParseUInt16(NetConvert.cs:30) indexesbuffer[posn]unchecked. - Impact: at iteration 65529,
reportPosn = 28 + 65529*4 = 262144→buffer[262144]→IndexOutOfRangeException→ genericcatchat RTCSctpTransport.cs:356 →break→ receive thread exits, no restart → association permanently dead.
Bypass Evidence
- Unchecked counts at SctpSackChunk.cs:141-142; loops at :146,:154.
NetConvert.ParseUInt16unchecked indexing (NetConvert.cs:30).ParseChunksvalidates onlychunkLength(SctpPacket.cs:195-203).- OOB math:
28 + 65535*4 = 262168 > 262144; buffer is 262144 (DEFAULT_ADVERTISED_RECEIVE_WINDOW, SctpAssociation.cs:62).numGapAckBlocksalone suffices — the dup-TSN loop is not needed. DoReceivecatch split: recoverablecatch(ApplicationException)at :345 (continue) vs genericcatch(Exception)at :356 (break);…
- Record
GHSA-jwjp-4649-v8jp- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125, CWE-755
- Updated
- 2026-11-09
NVD
7.5
SIPSorcery is a WebRTC, SIP, and VoIP library for C# and .NET. Prior to 10.0.14, SctpSackChunk.ParseChunk reads the numGapAckBlocks and numDuplicateTSNs fields from an attacker-controlled SCTP SACK chunk without checking that the corresponding entries fit the declared chunk length. A negotiated WebRTC peer can send a checksum-valid malformed SACK chunk that drives the parser beyond the 262144-byte receive buffer. The resulting IndexOutOfRangeException bypasses the recoverable ApplicationException handler in RTCSctpTransport.DoReceive, causing the generic handler to exit the dedicated receive loop and permanently terminate the SCTP association and all data channels. This issue is fixed in 10.0.14.
- Record
CVE-2026-123805- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125, CWE-755
- Updated
- 2026-11-09
OSV
7.5
SIPSorcery: Unbounded SCTP SACK gap/duplicate counts cause out-of-bounds read that kills the data-channel receive thread (DoS)
SIPSorcery is a WebRTC, SIP, and VoIP library for C# and .NET. Prior to 10.0.14, SctpSackChunk.ParseChunk reads the numGapAckBlocks and numDuplicateTSNs fields from an attacker-controlled SCTP SACK chunk without checking that the corresponding entries fit the declared chunk length. A negotiated WebRTC peer can send a checksum-valid malformed SACK chunk that drives the parser beyond the 262144-byte receive buffer. The resulting IndexOutOfRangeException bypasses the recoverable ApplicationException handler in RTCSctpTransport.DoReceive, causing the generic handler to exit the dedicated receive loop and permanently terminate the SCTP association and all data channels. This issue is fixed in 10.0.14.
- Record
CVE-2026-123805- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125, CWE-755
- Updated
- 2026-11-10
OSVGHSA-jwjp-4649-v8jp
7.5
SIPSorcery vulnerable to Denial of Service via out-of-bounds read in SCTP SACK chunk parsing
Summary
SctpSackChunk.ParseChunk reads the numGapAckBlocks and numDuplicateTSNs fields (each up to 65535) directly from an attacker-controlled SCTP SACK chunk and loops that many times reading 4 bytes per iteration, with no validation of the counts against the chunk length or the receive buffer. A single crafted SACK chunk from a negotiated WebRTC peer forces reads past the end of the 262144-byte receive buffer, raising IndexOutOfRangeException, which is not caught by the recoverable handler and terminates the dedicated SCTP receive thread — permanently killing the SCTP association and all data channels.
Root Cause
src/SIPSorcery/net/SCTP/Chunks/SctpSackChunk.cs:
ushort numGapAckBlocks = NetConvert.ParseUInt16(buffer, startPosn + 8);(:141)ushort numDuplicateTSNs = NetConvert.ParseUInt16(buffer, startPosn + 10);(:142)- gap-ack loop (:146) and duplicate-TSN loop (:154) index the buffer via
NetConvert.ParseUInt16/32(buffer[posn], no bounds check —sys/Net/NetConvert.cs:30,41).SctpPacket.ParseChunks(SctpPacket.cs:195-203) only validateschunkLength >= 4andposn+chunkLength <= length; the counts inside the value are never checked.RTCSctpTransport.DoReceivecallsSctpPacket.Parse(recvBuffer, 0, bytesRead)on a reusedrecvBuffer = new byte[262144].
Impact
IndexOutOfRangeException is a SystemException, not ApplicationException, so the recoverable catch (ApplicationException) { … continue; } at RTCSctpTransport.cs:345 is skipped and control falls to the generic catch (Exception) { … break; } at :356. The break exits the receive loop, DoReceive returns, and the dedicated _receiveThread = new Thread(DoReceive) (:173, started once) exits with no restart → the SCTP association and every data channel are permanently dead (denial of service).
Proof of Concept
A negotiated WebRTC peer (post-DTLS) sends a checksum-valid SCTP packet: 12-byte common header + a SACK chunk (type 3) with chunkLength=16, numGapAckBlocks=0xFFFF, numDuplicateTSNs=0xFFFF. CRC32C is attacker-computable. The gap-ack loop reaches buffer[262144] on a 262144-byte array (valid indices 0..262143) → IndexOutOfRangeException.
Attack Chain
- Entry: post-DTLS negotiated peer sends a checksum-valid SCTP packet with a SACK chunk (
chunkLength=16,numGapAckBlocks=0xFFFF). Guard:VerifyChecksum(CRC32C). Bypass: CRC32C is computable by the sender. - Processing:
DoReceive(RTCSctpTransport.cs:286) reads into reusedrecvBuffer(262144 bytes, :280) →SctpPacket.Parse(recvBuffer, 0, bytesRead)(:302) →ParseChunks→ SACK dispatch (SctpChunk.Parse:340-341) →SctpSackChunk.ParseChunk. Guard:ParseChunkschecks onlychunkLength>=4andposn+chunkLength<=length(SctpPacket.cs:195-203). Bypass:chunkLength=16is well-formed; the counts are never validated. - Sink: gap-ack loop (SctpSackChunk.cs:146) calls
NetConvert.ParseUInt16(buffer, reportPosn)withreportPosnstarting atstartPosn(16)+FIXED_PARAMETERS(12)=28, climbing+4each iteration. Guard: none on the count. Bypass:NetConvert.ParseUInt16(NetConvert.cs:30) indexesbuffer[posn]unchecked. - Impact: at iteration 65529,
reportPosn = 28 + 65529*4 = 262144→buffer[262144]→IndexOutOfRangeException→ genericcatchat RTCSctpTransport.cs:356 →break→ receive thread exits, no restart → association permanently dead.
Bypass Evidence
- Unchecked counts at SctpSackChunk.cs:141-142; loops at :146,:154.
NetConvert.ParseUInt16unchecked indexing (NetConvert.cs:30).ParseChunksvalidates onlychunkLength(SctpPacket.cs:195-203).- OOB math:
28 + 65535*4 = 262168 > 262144; buffer is 262144 (DEFAULT_ADVERTISED_RECEIVE_WINDOW, SctpAssociation.cs:62).numGapAckBlocksalone suffices — the dup-TSN loop is not needed. DoReceivecatch split: recoverablecatch(ApplicationException)at :345 (continue) vs genericcatch(Exception)at :356 (break);…
- Record
GHSA-jwjp-4649-v8jp- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125, CWE-755
- Updated
- 2026-11-09
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
SIPSorceryNuGet |
through 10.0.13 | 10.0.14 |
SIPSorceryNuGet |
before 10.0.14, plus listed versions 1.3.0-PRE1.3.11.4.01.4.11.5.0 Show 45 moreShow less1.5.21.5.31.5.51.5.61.6.01.6.11.6.210.0.110.0.1010.0.1110.0.1210.0.1310.0.210.0.310.0.4-pre10.0.510.0.610.0.710.0.810.0.92.0.02.0.13.0.03.0.13.0.23.0.33.0.43.1.03.2.03.3.03.4.03.5.03.6.04.0.0-rc4.0.1-rc4.0.13-pre4.0.2-rc4.0.28-pre4.0.29-pre4.0.3-rc4.0.30-pre4.0.31-pre4.0.32-pre4.0.33-pre4.0.34-pre |
10.0.14 |
History
| Recorded | Changed | Sources |
|---|---|---|
| references | NVD, OSV | |
| aliases | EUVD, OSV | |
| description, products, references, severity, title | CVE List | |
| aliases, facts, id | GitHub Advisories | |
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-123805 is a high vulnerability (CVSS 7.5) in Sipsorcery-org Sipsorcery, published August 12, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.37%, the 31st percentile. Fixed in SIPSorcery 10.0.14.
References
github.com/sipsorcery-org/sipsorcery/security/advisories/GHSA-jwjp-4649-v8jp
github.com/sipsorcery-org/sipsorcery/pull/1772
github.com/sipsorcery-org/sipsorcery/commit/a2466550bb2a28821c73fb1961bc33dcc467f8cf
github.com/advisories/GHSA-jwjp-4649-v8jp
github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123805.json
nvd.nist.gov/vuln/detail/CVE-2026-123805
github.com/sipsorcery-org/sipsorcery
Left out here: 65 versions and the rest of 2 source descriptions. The JSON record has them.