{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "4.5.0"
              },
              {
                "last_affected": "4.5.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "1baa35eb9b821bc11aee5b55f7b1fa7893b97206"
            },
            {
              "fixed": "1d44554a1bb262db63ff4e240152a9deecd99054"
            }
          ],
          "repo": "https://github.com/warmcat/libwebsockets",
          "type": "GIT"
        }
      ],
      "versions": [
        "4.5.0"
      ]
    }
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-78161",
  "modified": "2026-08-27T11:31:04.175521192Z",
  "published": "2026-08-24T00:45:08.842Z",
  "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"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "warmcat libwebsockets LECP CBOR Recording lecp.c report_raw_cbor out-of-bounds write"
}