Vulnerability DatabaseCVE-2026-123805

CVE-2026-123805: 
C# vulnerability analysis and mitigation

Overview

CVE-2026-123805 is an out-of-bounds read and improper exception handling vulnerability in SIPSorcery, a WebRTC, SIP, and VoIP library for C# and .NET. The flaw exists in SctpSackChunk.ParseChunk, which reads attacker-controlled numGapAckBlocks and numDuplicateTSNs fields from an SCTP SACK chunk without validating them against the declared chunk length, allowing a negotiated WebRTC peer to permanently terminate the SCTP association and all data channels. All versions up to and including 10.0.13 are affected; the issue is fixed in version 10.0.14. It carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory).

Technical details

The root cause is classified as CWE-125 (Out-of-bounds Read) and CWE-755 (Improper Handling of Exceptional Conditions). In SctpSackChunk.cs, the numGapAckBlocks and numDuplicateTSNs fields (each up to 65535) are read directly from the wire and used as loop bounds without checking that the corresponding entries fit within the declared chunk length; NetConvert.ParseUInt16/32 performs no bounds checking of its own. With maximum counts, the gap-ack loop reaches offset 262144 in the 262144-byte receive buffer on the 65529th iteration (28 + 65529*4 = 262144), raising an IndexOutOfRangeException. Because IndexOutOfRangeException is a SystemException rather than an ApplicationException, it bypasses the recoverable handler in RTCSctpTransport.DoReceive and falls through to the generic catch (Exception) { break; }, which exits the receive loop permanently — the receive thread is started only once with no restart logic. A secondary, silent failure mode also exists: counts small enough to stay within the buffer cause the parser to silently consume stale bytes from prior packets, corrupting retransmission state without any exception (GitHub Advisory, Fix PR #1772).

Impact

Successful exploitation results in a permanent denial of service affecting the SCTP association and all WebRTC data channels on the targeted endpoint; the RTP media path is not affected. A single crafted SACK packet from any peer that has completed DTLS negotiation is sufficient to kill the receive thread with no possibility of recovery short of restarting the process. There is no confidentiality or integrity impact from the crash path, though the silent corruption path (sub-buffer-size counts) can corrupt retransmission state, potentially affecting data reliability (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the time of disclosure. The vulnerability is automatable (NVD SSVC: automatable=yes) and requires no privileges or user interaction — any peer that completes DTLS negotiation can send the crafted packet, making public-facing WebRTC data channel endpoints broadly exposed. The EPSS score is approximately 0.37%, indicating a low but non-negligible probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog (GitHub Advisory, Feedly).

Exploitation steps

  1. Establish a WebRTC session: Complete a standard WebRTC offer/answer exchange and DTLS handshake with a target application using SIPSorcery <= 10.0.13, obtaining a negotiated peer connection with an active SCTP association.
  2. Craft the malicious SCTP packet: Construct a raw SCTP packet with the 12-byte common header followed by a SACK chunk (type=3) with chunkLength=16, numGapAckBlocks=0xFFFF, and numDuplicateTSNs=0xFFFF. The fixed chunk length of 16 passes the only validation check in SctpPacket.ParseChunks (which only verifies chunkLength >= 4 and that the chunk fits in the buffer).
  3. Compute a valid CRC32C checksum: Calculate and insert the correct CRC32C checksum for the crafted packet into the SCTP common header. This is fully computable by the sender and bypasses the checksum guard in VerifyChecksum.
  4. Send the packet: Transmit the crafted SCTP packet over the established DTLS channel to the target.
  5. Trigger out-of-bounds read: The target's SctpSackChunk.ParseChunk enters the gap-ack loop and on the 65529th iteration accesses buffer[262144] on a 262144-byte array, raising IndexOutOfRangeException.
  6. Achieve permanent DoS: The IndexOutOfRangeException bypasses the catch (ApplicationException) recoverable handler and hits the generic catch (Exception) { break; }, exiting the receive loop. Since _receiveThread is never restarted, the SCTP association and all data channels are permanently terminated (GitHub Advisory, Fix PR #1772).

Indicators of compromise

  • Logs: Application logs showing IndexOutOfRangeException or ArgumentException originating from RTCSctpTransport.DoReceive or SctpSackChunk.ParseChunk; log entries indicating the SCTP receive thread has exited unexpectedly; absence of further SCTP-related log activity after a single packet receipt.
  • Process/Runtime: WebRTC data channels becoming permanently unresponsive or closed after a brief period of activity; the dedicated SCTP receive thread (_receiveThread) no longer running in the process; no automatic recovery or reconnection of data channels.
  • Network: Inbound SCTP SACK packets (chunk type 3) with chunkLength=16 but numGapAckBlocks or numDuplicateTSNs fields set to anomalously large values (e.g., 0xFFFF); SCTP packets where the declared entry counts far exceed what the chunk length could accommodate (GitHub Advisory).

Mitigation and workarounds

Upgrade to SIPSorcery version 10.0.14 (NuGet package SIPSorcery), which validates that numGapAckBlocks and numDuplicateTSNs fit within the declared chunk length before entering the parse loops, throwing a recoverable ApplicationException for malformed chunks. The fix also adds defense-in-depth by treating IndexOutOfRangeException and ArgumentException as recoverable in RTCSctpTransport.DoReceive, preventing any similar parser bug from permanently killing the receive thread. No configuration-based workaround is available for versions <= 10.0.13; upgrading is the only remediation (GitHub Advisory, Fix Commit).

Community reactions

The vulnerability was reported by security researcher zx (Jace, GitHub: @manus-use) and disclosed via GitHub Security Advisories. The SIPSorcery maintainer acknowledged the report, merged the fix promptly on August 10, 2026, and noted agreement with the reporter's severity assessment. Brief mentions appeared on Mastodon and Bluesky via @thehackerwire, indicating modest community awareness. No major media coverage or broader industry commentary has been identified (GitHub Advisory, Fix PR #1772).

Additional resources


Source: This report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-59975HIGH7.5
  • C# logoC#
  • SharpIppNext
NoYesNov 18, 2026
CVE-2026-102529HIGH7.5
  • C# logoC#
  • HtmlSanitizer
NoYesNov 17, 2026
CVE-2026-128082HIGH7.5
  • C# logoC#
  • AutoMapper
NoYesNov 13, 2026
CVE-2026-128081HIGH7.5
  • C# logoC#
  • AutoMapper
NoYesNov 13, 2026
CVE-2026-120796MEDIUM5.3
  • C# logoC#
  • Microsoft.NETCore.App.Runtime.linux-arm64
NoYesNov 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management