CVE-2026-78161

NameCVE-2026-78161
DescriptionA vulnerability was found in warmcat libwebsockets 4.5.0. Impacted is the function report_raw_cbor of the file lib/misc/lecp.c of the component LECP CBOR Recording. The manipulation results in out-of-bounds write. The attack can be launched remotely. The exploit has been made public and could be used. The patch is identified as 1d44554a1bb262db63ff4e240152a9deecd99054. It is best practice to apply a patch to resolve this issue.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1145789

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libwebsockets (PTS)bookworm4.1.6-3fixed
trixie4.3.5-1+deb13u1vulnerable
forky, sid4.3.5-6fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libwebsocketssourcebullseye(not affected)
libwebsocketssourcebookworm(not affected)
libwebsocketssource(unstable)4.3.5-61145789

Notes

[trixie] - libwebsockets <no-dsa> (Minor issue; will be fixed via point release)
[bookworm] - libwebsockets <not-affected> (Vulnerable code introduced in v4.3.0)
[bullseye] - libwebsockets <not-affected> (Vulnerable code introduced in v4.3.0)
Introduced by: https://github.com/warmcat/libwebsockets/commit/dcaa0013b425882aa71cfb1a5b350d67b6717608 (v4.3.0)
Fixed by: https://github.com/warmcat/libwebsockets/commit/1d44554a1bb262db63ff4e240152a9deecd99054 (v5.0.0)
https://github.com/biniamf/pocs/tree/main/libwebsockets-lecp-lecp_parse-cbor_pos_oob_write

Search for package or bug name: Reporting problems