# CVE-2025-50518: A use-after-free vulnerability exists in the coapdeletepdulkd function within coappdu.c of the libcoap library.

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2025-08-14T00:00:00.000Z
- Modified: 2026-06-17T09:35:08.873Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://github.com/IreneTheITCrowd/blog/blob/main/libcoap-vulnerability.md>
- <https://github.com/IreneTheITCrowd/blog/issues/1>
- <https://github.com/obgm/libcoap/issues/1724#issuecomment-3199631257>
- <https://github.com/obgm/libcoap/issues/1724#issuecomment-3234613482>

## Sources

- CVE List: [CVE-2025-50518](https://www.cve.org/CVERecord?id=CVE-2025-50518), CVE Terms of Use, modified 2025-09-11
- NVD: [CVE-2025-50518](https://nvd.nist.gov/vuln/detail/CVE-2025-50518), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-50518 · Whole record: https://cve.day/CVE-2025-50518.json · Rebuilt by cve.day 2026-11-25T22:59:02.518Z
