Skip to main content
CVE-2026-50161VulnerabilityPublished Updated

Libre: Prior to 4.8.1, the websock_decode() function in src/websock/websock.c contains an integer overflow when

Affects libreSource GCVE Database

0
Compare
Authoritative record:CVE-2026-50161· Critical 9.3

Not known to be exploited · CVSS 9.3 Critical · fixed in 4.8.1 : patch libre as a priority.

Data as of 24 Nov 2026, 20:42 UTC

CVSS 4.0 base score
9.3Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 4.8.1
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10librepkg:deb/ubuntu/libre?arch=source&distro=stonkingOther threatsAffected
  • =2.0.1-3build1
  • =2.0.1-3ubuntu1
Fixed in–
Ubuntu 26.04 LTSlibrepkg:deb/ubuntu/libre?arch=source&distro=resoluteOther threatsAffected
  • =2.0.1-3
  • =2.0.1-3build1
Fixed in–
Ubuntu 24.04 LTSlibrepkg:deb/ubuntu/libre?arch=source&distro=nobleOther threatsAffected
  • =1.1.0-1build2
  • =1.1.0-1build3
  • =1.1.0-1build4
Fixed in–
Ubuntu 22.04 LTSlibrepkg:deb/ubuntu/libre?arch=source&distro=jammyOther threatsAffected
  • =1.1.0-1
  • =1.1.0-1build1
Fixed in–
Ubuntu 20.04 LTSlibrepkg:deb/ubuntu/libre?arch=source&distro=focalOther threatsAffected
  • =0.6.0-4
Fixed in–
Ubuntu 18.04 LTSlibrepkg:deb/ubuntu/libre?arch=source&distro=bionicOther threatsAffected
  • 0.5.4-3ubuntu1 – 0.5.6-1ubuntu2
4 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…