漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
cpp-httplib: Use-after-free of TLS session in WebSocketClient::shutdown_and_close()
Vulnerability Description
cpp-httplib is a C++ header-only HTTP/HTTPS library. In versions 0.33.0 through 0.50.0, the TLS-enabled WebSocket client frees the TLS session before closing the WebSocket that still uses it, producing a use-after-free. In WebSocketClient::shutdown_and_close the SSL object is freed and the pointer cleared, but the subsequent WebSocket close still sends a close frame through the SSL socket stream, which holds a raw copy of the now-dangling session pointer and reads from and writes to the freed memory. The same freed-then-used ordering is reachable through the client's destructor and its connect path, so ordinary teardown of a secure WebSocket connection triggers the defect. This issue is fixed in version 0.50.1.
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Vulnerability Type
释放后使用
Vulnerability Title
yhirose cpp-httplib 资源管理错误漏洞
Vulnerability Description
yhirose cpp-httplib是yhirose个人开发者开源的一个C++实现的HTTP客户端与服务器开发框架。 yhirose cpp-httplib 0.33.0版本至0.50.0版本存在资源管理错误漏洞,该漏洞源于TLS WebSocket客户端在关闭仍使用TLS会话的WebSocket前释放该会话,导致释放后重用。
CVSS Information
N/A
Vulnerability Type
N/A