p PatchFirst

CVE-2026-77358

CVE-2026-77358 · cpp-httplib: Use-after-free of TLS session in WebSocketClient::shutdown_and_close()

Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.

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 8.2 · Hoch · EPSS 0,4%

Veröffentlicht
Aktualisiert

Technologie-Stack: system

Betroffene Produkte und Versionen

  • cpp-httplib

    Softwareversionen
    • >= 0.33.0, < 0.50.: Betroffen

    Keine Korrektur veröffentlicht

  • cpp-httplib Debian:12

    Softwareversionen
    • 0.11.4+ds-1
    • 0.11.4+ds-1+deb12u1
    • 0.11.4+ds-2
    • 0.11.4+ds-3
    • 0.13.1+ds-1
    • 0.14.0+ds-1
    • 0.14.1+ds-1
    • 0.14.1+ds-2
    • 0.14.2+ds-1
    • 0.14.3+ds-1
    • 0.14.3+ds-1.1
    • 0.14.3+ds-1.1~exp1
    • 0.15.3+ds-1
    • 0.15.3+ds-2
    • 0.15.3+ds-3
    • 0.16.0+ds-1
    • 0.16.3+ds-1
    • 0.16.3+ds-2
    • 0.18.0+ds-1
    • 0.18.7-1
    • 0.20.1+ds-3
    • 0.25.0+ds-1
    • 0.26.0+ds-2
    • 0.41.0+ds-1
    • 0.41.0+ds-2
    • 0.41.0+ds-3
    • 0.41.0+ds-3~bpo13+1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cpp-httplib Debian:13

    Softwareversionen
    • 0.18.7-1
    • 0.18.7-1+deb13u1
    • 0.20.1+ds-3
    • 0.25.0+ds-1
    • 0.26.0+ds-2
    • 0.41.0+ds-1
    • 0.41.0+ds-2
    • 0.41.0+ds-3
    • 0.41.0+ds-3~bpo13+1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cpp-httplib Debian:14

    Softwareversionen
    • 0.18.7-1
    • 0.20.1+ds-3
    • 0.25.0+ds-1
    • 0.26.0+ds-2
    • 0.41.0+ds-1
    • 0.41.0+ds-2
    • 0.41.0+ds-3
    • 0.41.0+ds-3~bpo13+1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cpp-httplib Ubuntu:Pro:22.04:LTS

    Softwareversionen
    • 0.9.9+ds-1
    • 0.9.10+ds-1
    • 0.10.1+ds-1
    • 0.10.2+ds-1
    • 0.10.3+ds-1
    • 0.10.3+ds-1ubuntu0.1~esm1
    • 0.10.3+ds-1ubuntu0.1~esm2
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cpp-httplib Ubuntu:Pro:24.04:LTS

    Softwareversionen
    • 0.13.1+ds-1ubuntu1
    • 0.14.3+ds-1
    • 0.14.3+ds-1.1
    • 0.14.3+ds-1.1build1
    • 0.14.3+ds-1.1build2
    • 0.14.3+ds-1.1ubuntu0.1~esm1
    • 0.14.3+ds-1.1ubuntu0.1~esm2
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cpp-httplib Ubuntu:26.10

    Softwareversionen
    • 0.26.0+ds-2ubuntu3
    • 0.26.0+ds-2ubuntu4
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cpp-httplib Ubuntu:Pro:26.04:LTS

    Softwareversionen
    • 0.18.7-1
    • 0.26.0+ds-2ubuntu2
    • 0.26.0+ds-2ubuntu3
    • 0.26.0+ds-2ubuntu3+esm1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

Originalquellen

Prüfen Sie Ihren Server →