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.
Published: 2026-09-24
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Nanomsg versions 0.5‑beta through 1.x prior to 1.2.3 contain a buffer overflow in the WebSocket transport caused by an unchecked copy of the Sec‑WebSocket‑Version header via snprintf. An attacker who can initiate a WebSocket handshake with a specially crafted header can corrupt memory and potentially execute arbitrary code on the vulnerable system.

Affected Systems

Affected versions are Nanomsg 0.5‑beta up to just before 1.2.3, covering all releases of the Nanomsg library prior to the 1.2.3 update. The vulnerability only exists when the WebSocket transport is enabled; if the WebSocket option is disabled or limited to trusted peers, the issue does not affect those installations.

Risk and Exploitability

The CVSS base score of 8.6 indicates high severity. EPSS data is not available, so the likelihood of public exploitation remains uncertain, and the vulnerability is not yet listed in the CISA KEV catalog. Attackers would need to reach a listening service that exposes the WebSocket transport on untrusted networks, making the likely attack vector remote.

Generated by OpenCVE AI on September 24, 2026 at 04:21 UTC.

Remediation

Vendor Solution

Upgrade to nanomsg 1.2.3 or higher, or use NNG which is hardened for hostile networks.


Vendor Workaround

Disable the websocket transport, or ensure that it is only available to trusted peers.


OpenCVE Recommended Actions

  • Apply the official nanomsg 1.2.3 update or transition to the hardened NNG implementation.
  • Disable the WebSocket transport entirely, or ensure it is bound only to trusted peers and not exposed to untrusted networks.
  • Restrict inbound traffic to the WebSocket service via firewall rules or network segmentation so that only authenticated or trusted hosts can initiate connections.

Generated by OpenCVE AI on September 24, 2026 at 04:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 24 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 24 Sep 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Nanomsg
Nanomsg nanomsg
Vendors & Products Nanomsg
Nanomsg nanomsg

Thu, 24 Sep 2026 04:45:00 +0000

Type Values Removed Values Added
Title Remote Buffer Overflow in Nanomsg WebSocket Transport

Thu, 24 Sep 2026 03:30:00 +0000

Type Values Removed Values Added
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.
Weaknesses CWE-122
References
Metrics cvssV4_0

{'score': 8.6, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-24T12:47:21.751Z

Reserved: 2026-09-24T03:17:23.134Z

Link: CVE-2026-97152

cve-icon Vulnrichment

Updated: 2026-09-24T12:46:58.523Z

cve-icon NVD

Status : Received

Published: 2026-09-24T04:18:06.213

Modified: 2026-09-24T13:17:19.077

Link: CVE-2026-97152

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-24T09:08:49Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow