CVE-2021-40516

Source
https://cve.org/CVERecord?id=CVE-2021-40516
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-40516.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-40516
Downstream
Related
Published
2021-09-05T18:15:07Z
Modified
2026-08-18T15:02:05Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

WeeChat before 3.2.1 allows remote attackers to cause a denial of service (crash) via a crafted WebSocket frame that trigger an out-of-bounds read in plugins/relay/relay-websocket.c in the Relay plugin.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "10.0"
                },
                {
                    "last_affected":  "10.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "debian:debian_linux"
        }
    ]
}
References

Affected packages

Git / github.com/weechat/weechat

Affected ranges

Type
GIT
Repo
https://github.com/weechat/weechat
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:weechat:weechat:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0.4.1"
        },
        {
            "fixed":  "3.2.1"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v0.*
v0.4.1
v0.4.2
v0.4.2-rc1
v0.4.2-rc2
v0.4.3
v0.4.3-rc1
v0.4.3-rc2
v1.*
v1.0
v1.0-rc1
v1.0-rc2
v1.0-rc3
v1.1
v1.1-rc1
v1.1-rc2
v1.2
v1.2-rc1
v1.2-rc2
v1.3
v1.3-rc1
v1.3-rc2
v1.4
v1.4-rc1
v1.4-rc2
v1.5
v1.5-rc1
v1.5-rc2
v1.6
v1.6-rc1
v1.6-rc2
v1.7
v1.7-rc1
v1.7-rc2
v1.8
v1.8-rc1
v1.9
v1.9-rc1
v1.9-rc2
v2.*
v2.0
v2.0-rc1
v2.1
v2.1-rc1
v2.2
v2.2-rc1
v2.2-rc2
v2.3
v2.3-rc1
v2.4
v2.4-rc1
v2.5
v2.5-rc1
v2.5-rc2
v2.6
v2.6-rc1
v2.6-rc2
v2.7
v2.7-rc1
v2.8
v2.8-rc1
v2.9
v2.9-rc1
v3.*
v3.0
v3.0-rc1
v3.1
v3.1-rc1
v3.2
v3.2-rc1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-40516.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "90984801403705773734291904413682159646",
            "length":  1292
        },
        "id":  "CVE-2021-40516-353cee5b",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/weechat/weechat/commit/8b1331f98de1714bae15a9ca2e2b393ba49d735b",
        "target":  {
            "file":  "src/plugins/relay/relay-websocket.c",
            "function":  "relay_websocket_decode_frame"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "185022148163257089434961016404046252569",
                "184744754322552087026858270309936591790",
                "191183726525295947973913069477825404381",
                "68668294676952027065538799851858869832",
                "60044029408785289657743013144701600498",
                "53318637778942654248644030389717365042",
                "53534688126527754786968734116397354900",
                "140022038909199881189320215257515401726",
                "268943608237821586650034687314187702877",
                "285334332598187027351225037205398649593",
                "255007784547851831597708940877279823122",
                "173371007676917502685001025229199806348",
                "226270972019004488545873450194490022194",
                "324481065871207876708782365308912011591",
                "11404280253700365656450875383320078459",
                "114194268252433711824331716049407082525",
                "137109977297919328510141836220320587523",
                "242376844075321787239986594644343304784",
                "316063017631408290107575463454114821044",
                "142928069766618059012610996476402069099"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2021-40516-f0fe135d",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/weechat/weechat/commit/8b1331f98de1714bae15a9ca2e2b393ba49d735b",
        "target":  {
            "file":  "src/plugins/relay/relay-websocket.c"
        }
    }
]
vanir_signatures_modified
"2026-08-18T15:02:05Z"