CVE-2026-50161

Source
https://cve.org/CVERecord?id=CVE-2026-50161
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50161.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-50161
Aliases
  • GHSA-hvxv-v2gp-v93h
Published
2026-08-18T17:53:01.696Z
Modified
2026-08-20T10:17:14.633065Z
Severity
  • 9.3 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
libre: Integer overflow in websock_decode() masked frame length check leads to heap buffer overflow
Details

libre is a generic library for real-time communications with asynchronous input and output support. Prior to 4.8.1, the websockdecode() 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 UINT64MAX, causing the mbufgetleft() bounds check to pass. The subsequent XOR unmasking loop then writes beyond the heap buffer. Applications using websockaccept() or websockaccept_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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-190",
        "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50161.json"
}
References

Affected packages

Git / github.com/baresip/re

Affected ranges

Type
GIT
Repo
https://github.com/baresip/re
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "4.8.1"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

v0.*
v0.4.15
v0.4.16
v0.4.17
v0.5.0
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.5.7
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v1.*
v1.0.0
v1.1.0
v2.*
v2.0.0
v2.0.1
v2.0.1-dev10
v2.0.1-dev11
v2.0.1-dev12
v2.0.1-dev13
v2.0.1-dev14
v2.0.1-dev15
v2.0.1-dev17
v2.0.1-dev7
v2.0.1-dev8
v2.0.1-dev9
v2.1.0
v2.1.1
v2.10.0
v2.11.0
v2.12.0
v2.2.0
v2.2.1
v2.2.2
v2.3.0
v2.4.0
v2.5.0
v2.6.0
v2.6.1
v2.7.0
v2.8.0
v2.9.0
v3.*
v3.0.0
v3.1.0
v3.10.0
v3.11.0
v3.12.0
v3.13.0
v3.14.0
v3.15.0
v3.16.0
v3.17.0
v3.18.0
v3.19.0
v3.2.0
v3.20.0
v3.21.0
v3.21.1
v3.22.0
v3.23.0
v3.24.0
v3.3.0
v3.4.0
v3.5.0
v3.5.1
v3.6.0
v3.7.0
v3.8.0
v3.9.0
v4.*
v4.0.0
v4.1.0
v4.2.0
v4.3.0
v4.4.0
v4.5.0
v4.6.0
v4.7.0
v4.8.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-50161.json"
vanir_signatures
[
    {
        "target": {
            "function": "websock_decode",
            "file": "src/websock/websock.c"
        },
        "deprecated": false,
        "source": "https://github.com/baresip/re/commit/718b92615c7963670d26c1a2b246968b58d782e8",
        "id": "CVE-2026-50161-268399b0",
        "signature_version": "v1",
        "digest": {
            "length": 1144.0,
            "function_hash": "90791744945993249034159393964522523580"
        },
        "signature_type": "Function"
    },
    {
        "target": {
            "file": "src/websock/websock.c"
        },
        "deprecated": false,
        "source": "https://github.com/baresip/re/commit/718b92615c7963670d26c1a2b246968b58d782e8",
        "id": "CVE-2026-50161-8e345095",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "205653894276177882845976994735089349577",
                "319107032716303536559689801603816600260",
                "98417606615468948801619787221641535150",
                "60674254189263708024869926526995698480"
            ]
        },
        "signature_type": "Line"
    }
]
vanir_signatures_modified
"2026-08-20T10:17:14Z"