{"id":"CVE-2025-50518","aliases":["CVE-2025-50518"],"related":[],"kind":"vulnerability","state":"published","title":"A use-after-free vulnerability exists in the coapdeletepdulkd function within coappdu.c of the libcoap library.","summary":"A use-after-free vulnerability exists in the coap_delete_pdu_lkd function within coap_pdu.c of the libcoap library. This issue occurs due to improper handling of memory after the freeing of a PDU object, leading to potential memory corruption or the possibility of executing arbitrary code. NOTE: this is disputed by the Supplier because it only occurs when an application uses libcoap incorrectly.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A use-after-free vulnerability exists in the coap_delete_pdu_lkd function within coap_pdu.c of the libcoap library. This issue occurs due to improper handling of memory after the freeing of a PDU object, leading to potential memory corruption or the possibility of executing arbitrary code. NOTE: this is disputed by the Supplier because it only occurs when an application uses libcoap incorrectly.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de use-after-free en la función coap_delete_pdu_lkd, dentro de coap_pdu.c de la librería libcoap. Este problema se produce debido a un manejo inadecuado de la memoria tras la liberación de un objeto PDU, lo que puede provocar corrupción de memoria o la ejecución de código arbitrario.","source":"nvd"}],"published":"2025-08-14T00:00:00.000Z","modified":"2026-06-17T09:35:08.873Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"}],"references":[{"url":"https://github.com/IreneTheITCrowd/blog/blob/main/libcoap-vulnerability.md","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/IreneTheITCrowd/blog/issues/1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/obgm/libcoap/issues/1724#issuecomment-3199631257","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/obgm/libcoap/issues/1724#issuecomment-3234613482","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-08-15T12:37:01.113Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-50518","url":"https://www.cve.org/CVERecord?id=CVE-2025-50518","licence":"CVE Terms of Use","modified":"2025-09-11T17:46:17.857Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-50518","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50518","licence":"Public domain","modified":"2026-06-17T09:35:08.873Z"}],"updatedAt":"2026-11-25T22:59:02.518Z","epss":{"score":0.00527,"percentile":0.46114,"date":"2026-12-01T12:00:22.000Z"}}