Impact
cpp‑httplib releases its TLS session before the WebSocket close frame is sent, which results in a use‑after‑free that can corrupt memory or enable code execution. The flaw is triggered during normal teardown of a secure socket and is rated 8.2 by CVSS, indicating a high‑consequence vulnerability.
Affected Systems
The bug exists in yhirose:cpp-httplib versions 0.33.0 through 0.50.0. Any deployment that includes the header‑only library in client code that opens TLS‑enabled WebSockets is potentially affected.
Risk and Exploitability
The vulnerability carries a high CVSS score of 8.2 and an unavailable EPSS, meaning current exploit data is not published. Because the flaw manifests when a client performs a typical shutdown sequence, it can be triggered remotely if an attacker can establish a TLS WebSocket connection. The defect is not listed in the CISA KEV catalog, suggesting no public evidence of widespread exploitation yet. Nonetheless, the use‑after‑free can allow arbitrary code execution or memory corruption, warranting immediate attention.
OpenCVE Enrichment