PatchSiren cyber security CVE debrief
CVE-2026-50161 baresip CVE debrief
CVE-2026-50161 is a critical vulnerability in the libre library, which is used for real-time communications with asynchronous input and output support. The vulnerability exists in the websock_decode() function in src/websock/websock.c and can cause an integer overflow when validating a masked WebSocket frame that uses the 64-bit extended length encoding. This can lead to heap corruption or denial of service after the HTTP WebSocket upgrade handshake.
- Vendor
- baresip
- Product
- re
- CVSS
- CRITICAL 9.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-18
- Original CVE updated
- 2026-09-18
- Advisory published
- 2026-08-18
- Advisory updated
- 2026-09-18
Who should care
Defenders who use the libre library for real-time communications with asynchronous input and output support should care about this vulnerability. They should assess their exposure and prioritize patching or mitigating this vulnerability.
Why it matters
CVE-2026-50161 is a critical vulnerability in the libre library that can cause heap corruption or denial of service. Defenders who use the libre library for real-time communications with asynchronous input and output support should care about this vulnerability and prioritize patching or mitigating it.
- Heap corruption or denial of service after the HTTP WebSocket upgrade handshake
- Potential for attacker-controlled heap corruption
- Possible disruption of real-time communication services
Technical summary
The vulnerability exists in the websock_decode() function in src/websock/websock.c and can cause an integer overflow when validating a masked WebSocket frame that uses the 64-bit extended length encoding. This can lead to heap corruption or denial of service after the HTTP WebSocket upgrade handshake. The expression 4 + hdr->len can wrap when hdr->len is close to UINT64_MAX, causing the mbuf_get_left() bounds check to pass. The subsequent XOR unmasking loop then writes beyond the heap buffer. Applications using websock_accept() or websock_accept_proto() to implement a WebSocket server are affected.
Defensive priority
Defenders should prioritize patching or mitigating this vulnerability as it can lead to heap corruption or denial of service.
Recommended defensive actions
- Patch or upgrade to version 4.8.1 or later
- Implement compensating controls such as monitoring and exception tracking
- Verify affected scope and inventory checks
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
Evidence notes
The vulnerability is caused by an integer overflow in the websock_decode() function. The expression 4 + hdr->len can wrap when hdr->len is close to UINT64_MAX, causing the mbuf_get_left() bounds check to pass. The subsequent XOR unmasking loop then writes beyond the heap buffer.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-50161 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-50161
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-50161 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-50161
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/baresip/re/commit/718b92615c7963670d26c1a2b246968b58d782e8
-
Source reference
Unverified legacy reference
URL: https://github.com/baresip/re/pull/1584
-
Source reference
Unverified legacy reference
URL: https://github.com/baresip/re/releases/tag/v4.8.1
-
Source reference
Unverified legacy reference
URL: https://github.com/baresip/re/security/advisories/GHSA-hvxv-v2gp-v93h
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.