{"id":"CVE-2025-50518","aliases":["EUVD-2025-24861","GHSA-fc59-q736-3r9p","UBUNTU-CVE-2025-50518"],"status":"disputed","title":"A use-after-free vulnerability exists in the coap_delete_pdu_lkd function within coap_pdu.c of...","description":"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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.00491,"percentile":0.42657,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-416"],"published":"2025-08-14T00:00:00Z","modified":"2026-10-17T12:57:04Z","affected":[{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libcoap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.1.2-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libcoap2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.0-2","4.2.1-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libcoap2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.1-1","4.2.1-1build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libcoap3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.0-2","4.3.0-2build1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libcoap3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.1-2","4.3.3-1","4.3.4-1","4.3.4-1.1build2","4.3.4-1.1build3","4.3.4-1.1build4"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libcoap3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.4-1.1build4"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libcoap3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.5-2","4.3.5-3","4.3.5-4","4.3.5-4ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libcoap3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.4-1.1build4","4.3.5-1","4.3.5-2"]}],"references":[{"url":"https://github.com/IreneTheITCrowd/blog/blob/main/libcoap-vulnerability.md","tags":["report"]},{"url":"https://github.com/IreneTheITCrowd/blog/issues/1"},{"url":"https://github.com/obgm/libcoap/issues/1724#issuecomment-3199631257"},{"url":"https://github.com/obgm/libcoap/issues/1724#issuecomment-3234613482"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50518"},{"url":"https://github.com/obgm/libcoap.git","tags":["report"]},{"url":"https://github.com/advisories/GHSA-fc59-q736-3r9p"},{"url":"https://ubuntu.com/security/CVE-2025-50518","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-50518","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-50518","description":"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.","status":"disputed","published":"2025-08-14T00:00:00Z","modified":"2025-09-11T17:46:17.857Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:32:52.526476Z"}],"euvd":[{"id":"EUVD-2025-24861","description":"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.","status":"published","published":"2025-08-14T00:00:00Z","modified":"2025-09-11T17:46:17Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:31:44.524108Z"}],"ghsa":[{"id":"GHSA-fc59-q736-3r9p","title":"A use-after-free vulnerability exists in the coap_delete_pdu_lkd function within coap_pdu.c of...","description":"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.","status":"published","published":"2025-08-14T18:31:28Z","modified":"2025-09-02T15:32:09Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T15:03:28.374084Z"}],"nvd":[{"id":"CVE-2025-50518","description":"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.","status":"disputed","published":"2025-08-14T16:15:35.417Z","modified":"2026-06-17T09:35:08.873Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:11:23.594522Z"}],"osv":[{"id":"UBUNTU-CVE-2025-50518","description":"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.","status":"published","published":"2025-08-14T16:15:00Z","modified":"2026-10-17T12:57:04.493206947Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:55:50.31802Z"}]}}
