{"id":"CVE-2026-78161","summary":"warmcat libwebsockets LECP CBOR Recording lecp.c report_raw_cbor out-of-bounds write","details":"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.","modified":"2026-08-27T19:14:11.439848Z","published":"2026-08-24T00:45:08.842Z","database_specific":{"cna_assigner":"VulDB","cwe_ids":["CWE-119","CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78161.json"},"references":[{"type":"WEB","url":"https://github.com/warmcat/libwebsockets/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78161.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78161"},{"type":"ADVISORY","url":"https://vuldb.com/cve/CVE-2026-78161"},{"type":"ADVISORY","url":"https://vuldb.com/submit/883225"},{"type":"ADVISORY","url":"https://vuldb.com/vuln/394543"},{"type":"REPORT","url":"https://vuldb.com/vuln/394543/cti"},{"type":"FIX","url":"https://github.com/warmcat/libwebsockets/commit/1d44554a1bb262db63ff4e240152a9deecd99054"},{"type":"EVIDENCE","url":"https://github.com/biniamf/pocs/blob/main/libwebsockets-lecp-lecp_parse-cbor_pos_oob_write/poc_lecp_cbor_pos_oob.c"},{"type":"EVIDENCE","url":"https://github.com/biniamf/pocs/tree/main/libwebsockets-lecp-lecp_parse-cbor_pos_oob_write"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/warmcat/libwebsockets","events":[{"introduced":"1baa35eb9b821bc11aee5b55f7b1fa7893b97206"},{"fixed":"1d44554a1bb262db63ff4e240152a9deecd99054"}],"database_specific":{"extracted_events":[{"introduced":"4.5.0"},{"last_affected":"4.5.0"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["4.5.0","v4.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-78161.json","vanir_signatures_modified":"2026-08-27T19:14:11Z","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/warmcat/libwebsockets/commit/1d44554a1bb262db63ff4e240152a9deecd99054","target":{"file":"lib/misc/lecp.c","function":"lecp_parse"},"deprecated":false,"digest":{"function_hash":"20202142571052205829753458882689707487","length":10252},"id":"CVE-2026-78161-75493f2c","signature_type":"Function"},{"target":{"file":"lib/misc/lecp.c","function":"report_raw_cbor"},"deprecated":false,"digest":{"function_hash":"65864091482555991527210941033341749404","length":227},"id":"CVE-2026-78161-7ac0b2f0","signature_type":"Function","signature_version":"v1","source":"https://github.com/warmcat/libwebsockets/commit/1d44554a1bb262db63ff4e240152a9deecd99054"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/warmcat/libwebsockets/commit/1d44554a1bb262db63ff4e240152a9deecd99054","target":{"file":"lib/misc/lecp.c"},"deprecated":false,"digest":{"line_hashes":["293336959863681589821278390228489802029","147818705718954066784780679426977248202","278500515919508856726592087884787418700","158956048387682890682892585988907474254","332503147478371451261019873994211125563","308914038376979422299268544412370881740","45413060396040575632965538988741081520","182213923548219382721795721312777241303","337578691801299456732853191210114399037","251695709048339312555951863339086853521","119206182354761663649017734836238781651","294422414310524342446426351585321439741","134106007634041345075517273121436794173","63891085159422660300913889567012208352"],"threshold":0.9},"id":"CVE-2026-78161-a431107a"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"}]}