{"id":"CVE-2026-97152","state":"PUBLISHED","title":"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 head","description":"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.","publishedAt":"2026-09-24T03:17:23.503Z","updatedAt":"2026-09-24T12:47:21.751Z","severity":{"score":8.6,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:H/SI:H/SA:H","source":"mitre"},"assigner":"mitre","products":["Nanomsg Nanomsg"],"affected":[{"vendor":"Nanomsg","product":"Nanomsg","defaultStatus":"unaffected","versions":[{"version":"0.5.0","status":"affected","lessThan":"1.2.3","versionType":"semver"}],"modules":["websocket"],"programFiles":["ws_handshake.c"],"repo":"https://github.com/nanomsg/nanomsg"}],"references":["https://github.com/nanomsg/nanomsg/pull/1130","https://nanomsg.org","https://github.com/nanomsg/nanomsg/releases/tag/1.2.3"],"weaknesses":["CWE-122"],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/97xxx/CVE-2026-97152.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-97152","state":"PUBLISHED","datePublished":"2026-09-24T03:17:23.503Z","dateUpdated":"2026-09-24T12:47:21.751Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2026-09-24T03:17:23.134Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Nanomsg","product":"Nanomsg","defaultStatus":"unaffected","versions":[{"version":"0.5.0","status":"affected","lessThan":"1.2.3","versionType":"semver"}],"modules":["websocket"],"programFiles":["ws_handshake.c"],"repo":"https://github.com/nanomsg/nanomsg"}],"references":[{"url":"https://github.com/nanomsg/nanomsg/pull/1130"},{"url":"https://nanomsg.org"},{"url":"https://github.com/nanomsg/nanomsg/releases/tag/1.2.3"}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.6,"baseSeverity":"HIGH","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-122","description":"CWE-122 Heap-based Buffer Overflow","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2026-09-24T03:17:23.503Z"},"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Upgrade to nanomsg 1.2.3 or higher, or use NNG which is hardened for hostile networks."}],"value":"Upgrade to nanomsg 1.2.3 or higher, or use NNG which is hardened for hostile networks."}],"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Disable the websocket transport, or ensure that it is only available to trusted peers."}],"value":"Disable the websocket transport, or ensure that it is only available to trusted peers."}],"x_generator":{"engine":"CVE-Request-form 0.0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-24T12:46:52.122399Z","id":"CVE-2026-97152","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-24T12:47:21.751Z"}}]}}}