Skip to content

Fix/ghsa 5qr8 websocket close - #631

Merged
wsobel merged 3 commits into
mainfrom
fix/ghsa-5qr8-websocket-close
Dec 4, 2026
Merged

wsobel merged 3 commits into
mainfrom
fix/ghsa-5qr8-websocket-close

Conversation

@wsobel

@wsobel wsobel commented Dec 1, 2026

Copy link
Copy Markdown
Member

See advisory https://github.com/mtconnect/cppagent/security/advisories/GHSA-5qr8-cfvx-c7vx by @JGHyun

Fixed some conditions when streaming data via websockets and a 0 count is sent to the agent, it causes a crash.

When a streaming sample request made over a WebSocket fails while its first chunk is produced (for example count is 0 or outside the buffer size), the agent writes the error document and calls close() on the session. For a WebSocket session close() releases the request manager's state, but it does not close the stream and the read loop keeps running. The next message that arrives on the same connection is parsed with a null m_httpRequest, and the agent process ends with a segmentation fault.

wsobel and others added 2 commits November 27, 2026 16:22
jiro4989/build-deb-action runs a prebuilt amd64-only Docker image, which
fails on the ubuntu-22.04-arm runner with a platform mismatch. Generate the
DEBIAN/control file and call dpkg-deb directly instead; the step still
exposes file_name for the release upload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wsobel
wsobel requested a review from simonyg December 3, 2026 11:38
@wsobel
wsobel merged commit 27e08d5 into main Dec 4, 2026
6 checks passed
@wsobel
wsobel deleted the fix/ghsa-5qr8-websocket-close branch December 4, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant