CVE-2026-77358

Description

A flaw was found in cpp-httplib. The TLS (Transport Layer Security)-enabled WebSocket client improperly frees a TLS session while the WebSocket connection is still active. This timing issue, which occurs during the normal shutdown of a secure WebSocket connection, leads to a use-after-free vulnerability where the client attempts to access memory that has already been released. A remote attacker could potentially exploit this to cause a denial of service (DoS) by crashing the application or leading to other unpredictable system behavior.

Statement

Red Hat has marked this vulnerability as having an Important severity impact because an unauthenticated remote peer can cause a complete client denial of service through an application crash during routine connection teardown. The issue resides in the TLS-enabled WebSocket client, where deallocating the session prior to closing the socket results in memory corruption via a dangling pointer. While this component is not distributed in core Red Hat Enterprise Linux repositories, client applications building against cpp-httplib headers and establishing secure WebSocket connections are susceptible to unexpected termination.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Memory

If the expired pointer is used in a read operation, an attacker might be able to control data read in by the application.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

If the expired pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur.

Integrity,Confidentiality,Availability

Technical Impact: Execute Unauthorized Code or Commands

If the expired pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible.

Frequently Asked Questions

Want to get errata notifications? Sign up here.