Nanomsg versions 0.5-beta through 1.x before 1.2.3 has a remotely exploitable buffer overflow in the WebSocket transport, due to an unchecked copy of the Sec-WebSocket-Version header, through snprintf.
{
"cna_assigner": "mitre",
"cwe_ids": [
"CWE-122"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97152.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97152.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"287009897241120144265531165140395810049",
"274430065088616682288390194085542061785",
"46147651555268843306278932351840002642",
"311153397563635737156656258054851071624",
"87668588403922739184672162694556759276"
],
"threshold": 0.9
},
"id": "CVE-2026-97152-0a1b42aa",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/nanomsg/nanomsg/commit/6dac4ea9bd0f8cd215925aefd7fdcc62714f67d7",
"target": {
"file": "src/utils/closefd.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "322197853003812991144294540737187127422",
"length": 120
},
"id": "CVE-2026-97152-c9f945b3",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/nanomsg/nanomsg/commit/6dac4ea9bd0f8cd215925aefd7fdcc62714f67d7",
"target": {
"file": "src/utils/closefd.c",
"function": "nn_closefd"
}
}
]
"2026-09-24T14:06:14Z"