CVE-2025-50518: Use After Free
Source CVE Database V5
Not known to be exploited · CVSS 9.8 Critical.
Data as of 26 Oct 2026, 08:30 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 14 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
To mitigate CVE-2025-50518 effectively, European organizations should: 1) Conduct a thorough inventory of all IoT and embedded devices using libcoap to identify potentially vulnerable systems. 2) Review and audit application code that integrates libcoap to ensure correct usage patterns, specifically avoiding scenarios that lead to use-after-free conditions in coap_delete_pdu_lkd. 3) Engage with libcoap maintainers or vendors for patches or updated versions that address this vulnerability once available. 4) Implement network segmentation and strict access controls to isolate IoT devices from critical network segments, reducing the attack surface. 5) Deploy runtime protection mechanisms such as memory safety tools (e.g., AddressSanitizer) during development and testing phases to detect improper memory handling. 6) Monitor network traffic for anomalous CoAP messages that could indicate exploitation attempts. 7) Establish incident response plans tailored to IoT device compromise scenarios. These steps go beyond generic advice by emphasizing code audits for correct library usage, proactive device identification, and network-level containment strategies.
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.