{"apiVersion":"1.0","identifier":"CVE-2026-50161","description":"libre is a generic library for real-time communications with asynchronous input and output support. Prior to 4.8.1, the websock_decode() function in src/websock/websock.c contains an integer overflow when validating a masked WebSocket frame that uses the 64-bit extended length encoding. 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, and exploitation can cause attacker-controlled heap corruption or denial of service after the HTTP WebSocket upgrade handshake. This issue is fixed in version 4.8.1.","publishedAt":"2026-08-18T18:17:53","lastModifiedAt":"2026-08-19T16:17:19","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-50161","cvssScore":9.3,"cvssVector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","epssProbability":0.00384,"riskScore":0.96,"affectedProduct":"libre","affectedVersions":"<4.8.1","vulnerabilityType":"Library","operatingSystems":[],"links":{"self":"https://www.redsauce.net/api/cves/CVE-2026-50161","webPages":{"es":"https://www.redsauce.net/es/cves/CVE-2026-50161","en":"https://www.redsauce.net/en/cves/CVE-2026-50161","fr":"https://www.redsauce.net/fr/cves/CVE-2026-50161","pt":"https://www.redsauce.net/pt/cves/CVE-2026-50161","de":"https://www.redsauce.net/de/cves/CVE-2026-50161","sk":"https://www.redsauce.net/sk/cves/CVE-2026-50161","el":"https://www.redsauce.net/el/cves/CVE-2026-50161"},"source":"https://nvd.nist.gov/vuln/detail/CVE-2026-50161"}}