Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-77358

published high CVSS 4.0 · 8.2

cpp-httplib: Use-after-free of TLS session in WebSocketClient::shutdown_and_close()

Published
27 Aug 2026, 22:37:14 UTC
Updated
31 Aug 2026, 18:25:37 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
yhirose — cpp-httplib>= 0.33.0, < 0.50. Affected Not stated GitHub_M
SUSE / openSUSE openSUSE-Tumbleweed ccacheaarch64 Advisory build 4.14.1-1.1 OPENSUSE-SU-2026:11979-1
SUSE / openSUSE openSUSE-Tumbleweed ccacheppc64le Advisory build 4.14.1-1.1 OPENSUSE-SU-2026:11979-1
SUSE / openSUSE openSUSE-Tumbleweed ccaches390x Advisory build 4.14.1-1.1 OPENSUSE-SU-2026:11979-1
SUSE / openSUSE openSUSE-Tumbleweed ccachex86_64 Advisory build 4.14.1-1.1 OPENSUSE-SU-2026:11979-1

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
4.0
Base score
8.2 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
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

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
yhirose cpp-httplib >= 0.33.0, < 0.50. (affected) GitHub_M · cna

Weaknesses

1
  • CWE-416 CWE-416: Use After Free (GitHub_M · cna)

References

2

Provider assertions

2

GitHub_M · cna

cpp-httplib: Use-after-free of TLS session in WebSocketClient::shutdown_and_close()

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
61fc9c6169eb36ed11a69f25f00a8169b66fbc27f20d034a3e0ef071766bfd15
Ingested
23 Sep 2026, 09:32:39 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected