CVE-2026-78161warmcat libwebsockets LECP CBOR Recording lecp.c report_raw_cbor out-of-bounds write
A 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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libwebsockets | Fixed | 4.3.5-3ubuntu1.1 | UBUNTU-CVE-2026-78161 |
| Ubuntu 24.04 | libwebsockets | Fix pending | 4.3.3-1.1ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-78161 |
| Debian 14 | libwebsockets | Fixed | 4.3.5-6 | DEBIAN-CVE-2026-78161 |
| Debian 13 | libwebsockets | Fixed | 4.3.5-1+deb13u2 | DEBIAN-CVE-2026-78161 |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- warmcat libwebsockets: affected: 4.5.0
Vendor advisories:
References
- https://vuldb.com/vuln/394543
- https://vuldb.com/vuln/394543/cti
- https://vuldb.com/cve/CVE-2026-78161
- https://vuldb.com/submit/883225
- https://github.com/biniamf/pocs/tree/main/libwebsockets-lecp-lecp_parse-cbor_pos_oob_write
- https://github.com/biniamf/pocs/blob/main/libwebsockets-lecp-lecp_parse-cbor_pos_oob_write/poc_lecp_cbor_pos_oob.c
- https://github.com/warmcat/libwebsockets/commit/1d44554a1bb262db63ff4e240152a9deecd99054
- https://github.com/warmcat/libwebsockets/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.