---
id: "CVE-2026-52788"
page: "https://infrastack.ai/live/CVE-2026-52788"
kind: "vulnerability"
aliases: ["CVE-2026-52788"]
title: "BACnet Stack: malformed WebSocket URLs cause out-of-bounds memory writes"
severity: "high"
cvss: 8.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["bacnet", "building-automation", "c", "embedded", "package"]
not_affected_if: ["bacnet-ip-or-mstp-only", "no-bacnet-sc"]
published_at: "2026-11-13T16:19:02+00:00"
first_seen_at: "2026-11-13T16:47:34+00:00"
updated_at: "2026-11-13T16:48:15+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-52788", "first_seen_at": "2026-11-13T16:47:34+00:00"}]
exploit_sources: []
---

# BACnet Stack: malformed WebSocket URLs cause out-of-bounds memory writes

Link for people: https://infrastack.ai/live/CVE-2026-52788 (this .md is for agents)

BACnet Stack's URL parser for BACnet/SC Address Resolution messages writes past a fixed-size array when it reads space-separated WebSocket URIs. An attacker who can send such a message to a device can corrupt memory, which may allow code execution.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the BACnet Stack version in your build: `unknown` if the sources do not say how to read it.
- Look for `bsc_node_parse_urls` in `src/bacnet/datalink/bsc/bsc-node.c` of your copy of the library.
- Confirm whether BACnet/SC (WebSocket) support is compiled into your firmware or application.

## Fix

- BACnet Stack: move to `1.4.5`, `1.5.1` or `1.6.0` (the patched release in each series).

## Timeline

- 2026-11-13T16:47:34+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-52788

## Documents

- [advisory] Vendor advisory: github.com https://github.com/bacnet-stack/bacnet-stack/security/advisories/GHSA-rf83-3rr5-v4mj

## From the sources

BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to versions 1.4.5, 1.5.1, and 1.6.0, the bsc_node_parse_urls() function in src/bacnet/datalink/bsc/bsc-node.c contains three distinct bugs when parsing space-separated WebSocket URIs from a BACnet/SC Address Resolution ACK message. Two bugs cause out-of-bounds writes past the utf8_urls[10][129] array in the static BSC_ADDRESS_RESOLUTION structure. This issue has been patched in versions 1.4.5, 1.5.1, and 1.6.0.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
