Skip to content
Heist/ feed
Unrated

DEBIAN-CVE-2026-77358

Type: advisorySource: OSV1 source record

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.

Announced Group revision 1
Original source ↗

DEBIAN-CVE-2026-77358

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-77358

cpp-httplib

Source reference: /affected/0/package/name

Affected versions
0.11.4+ds-1

Source reference: /affected/0/versions

0.11.4+ds-1+deb12u1

Source reference: /affected/0/versions

0.11.4+ds-2

Source reference: /affected/0/versions

0.11.4+ds-3

Source reference: /affected/0/versions

0.13.1+ds-1

Source reference: /affected/0/versions

0.14.0+ds-1

Source reference: /affected/0/versions

0.14.1+ds-1

Source reference: /affected/0/versions

0.14.1+ds-2

Source reference: /affected/0/versions

0.14.2+ds-1

Source reference: /affected/0/versions

0.14.3+ds-1

Source reference: /affected/0/versions

0.14.3+ds-1.1

Source reference: /affected/0/versions

0.14.3+ds-1.1~exp1

Source reference: /affected/0/versions

0.15.3+ds-1

Source reference: /affected/0/versions

0.15.3+ds-2

Source reference: /affected/0/versions

0.15.3+ds-3

Source reference: /affected/0/versions

0.16.0+ds-1

Source reference: /affected/0/versions

0.16.3+ds-1

Source reference: /affected/0/versions

0.16.3+ds-2

Source reference: /affected/0/versions

0.18.0+ds-1

Source reference: /affected/0/versions

0.18.7-1

Source reference: /affected/0/versions

0.20.1+ds-3

Source reference: /affected/0/versions

0.25.0+ds-1

Source reference: /affected/0/versions

0.26.0+ds-2

Source reference: /affected/0/versions

0.41.0+ds-1

Source reference: /affected/0/versions

0.41.0+ds-2

Source reference: /affected/0/versions

0.41.0+ds-3

Source reference: /affected/0/versions

0.41.0+ds-3~bpo13+1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

cpp-httplib

Source reference: /affected/1/package/name

Affected versions
0.18.7-1

Source reference: /affected/1/versions

0.18.7-1+deb13u1

Source reference: /affected/1/versions

0.20.1+ds-3

Source reference: /affected/1/versions

0.25.0+ds-1

Source reference: /affected/1/versions

0.26.0+ds-2

Source reference: /affected/1/versions

0.41.0+ds-1

Source reference: /affected/1/versions

0.41.0+ds-2

Source reference: /affected/1/versions

0.41.0+ds-3

Source reference: /affected/1/versions

0.41.0+ds-3~bpo13+1

Source reference: /affected/1/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

cpp-httplib

Source reference: /affected/2/package/name

Affected versions
0.18.7-1

Source reference: /affected/2/versions

0.20.1+ds-3

Source reference: /affected/2/versions

0.25.0+ds-1

Source reference: /affected/2/versions

0.26.0+ds-2

Source reference: /affected/2/versions

0.41.0+ds-1

Source reference: /affected/2/versions

0.41.0+ds-2

Source reference: /affected/2/versions

0.41.0+ds-3

Source reference: /affected/2/versions

0.41.0+ds-3~bpo13+1

Source reference: /affected/2/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "cpp-httplib",
      "purl": "pkg:deb/debian/cpp-httplib?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "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"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77358.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "cpp-httplib",
      "purl": "pkg:deb/debian/cpp-httplib?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "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"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77358.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "cpp-httplib",
      "purl": "pkg:deb/debian/cpp-httplib?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "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"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77358.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#58336 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement