PT-2026-82796 · Unknown · Cpp-Httplib

·

CVE-2026-77358

·

Published

2026-08-27

·

Updated

2026-08-28

CVSS v4.0

8.2

High

VectorAV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions cpp-httplib versions 0.33.0 through 0.50.0
Description The TLS-enabled WebSocket client contains a use-after-free flaw. In the shutdown and close() function, the SSL object is freed and its pointer is cleared; however, the subsequent WebSocket close process attempts to send a close frame through the SSL socket stream. Because the stream retains a raw copy of the now-dangling session pointer, it reads from and writes to the freed memory. This condition is also reachable via the client's destructor and its connect path, meaning a standard teardown of a secure WebSocket connection can trigger the issue.
Recommendations Update to version 0.50.1.

Exploit

Fix

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-77358
GHSA-W7P7-F35J-MW7Q

Affected Products

Cpp-Httplib