CVE-2025-50518CRITICAL 9.8EPSS p33.0%

CVE-2025-50518CVE-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.

Scoring

CVSS 3.19.8 (CRITICAL)
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS0.41% probability of exploitation · percentile 33.0% · 2026-06-18T12:00:27Z
Published2025-08-14
Last modified2026-04-15

Underlying weaknesses· 1

CWE-416

References

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

1

TypeTargetConfidenceTier
WeaknessUse After Freecwe-4160%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2025-34468
CVE
CVE-2025-0074
CVE
CVE-2025-22411
CVE
CVE-2025-22408
CVE
CVE-2025-0075
CVE
CVE-2025-22412
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.