CVE catalog

CVE-2025-50518

libcoap3: CVE-2025-50518

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.46% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibcoap3sid4.3.5-4not affected
Debianlibcoap3forky4.3.5-4not affected
Debianlibcoap3trixie4.3.4-1.1+deb13u3not affected
Debianlibcoap3bookworm4.3.1-1not affected

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibcoap3sourcesidNot affectedunimportantNot reportedNot reported
Debianlibcoap3sourceforkyNot affectedunimportantNot reportedNot reported
Debianlibcoap3sourcetrixieNot affectedunimportantNot reportedNot reported
Debianlibcoap3sourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libcoap3]Not affected
    Details (2)
    • 4.3.1-1 · amd64 · bookworm

      Not affected

      dsa · libcoap3 · debian · bookworm

    • 4.3.1-1 · arm64 · bookworm

      Not affected

      dsa · libcoap3 · debian · bookworm

  • [libcoap3-bin]Not affected

    Source package: [libcoap3]

    Details (2)
    • 4.3.1-1 · amd64 · bookworm

      Not affected

      dsa · libcoap3 · debian · bookworm

    • 4.3.1-1 · arm64 · bookworm

      Not affected

      dsa · libcoap3 · debian · bookworm

  • [libcoap3-dev]Not affected

    Source package: [libcoap3]

    Details (2)
    • 4.3.1-1 · amd64 · bookworm

      Not affected

      dsa · libcoap3 · debian · bookworm

    • 4.3.1-1 · arm64 · bookworm

      Not affected

      dsa · libcoap3 · debian · bookworm

  • [libcoap3-doc]Not affected

    Source package: [libcoap3]

    Details (2)
    • 4.3.1-1 · all · bookworm

      Not affected

      dsa · libcoap3 · debian · bookworm

    • 4.3.1-1 · all · bookworm

      Not affected

      dsa · libcoap3 · debian · bookworm

Observed:

References