Cyber Resilience

CVE-2025-65495

Libcoap 4.3.5

Published
24 November 2025
Modified
01 December 2025
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.0024 15th percentile
Risk Priority 56 floored blend · peak EPSS

Summary

CVE-2025-65495 is a high-severity Signed to Unsigned Conversion Error (CWE-195) vulnerability in Libcoap Libcoap. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 15th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-15 (Development Process, Standards, and Tools) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

Integer signedness error in tls_verify_call_back() in src/coap_openssl.c in OISM libcoap 4.3.5 allows remote attackers to cause a denial of service via a crafted TLS certificate that causes i2d_X509() to return -1 and be misused as a malloc() size parameter.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-65499Same product: Libcoap Libcoap
CVE-2023-30362Same product: Libcoap Libcoap
CVE-2023-35862Same product: Libcoap Libcoap
CVE-2026-29013Same product: Libcoap Libcoap
CVE-2025-59391Same product: Libcoap Libcoap
CVE-2024-0962Same product: Libcoap Libcoap
CVE-2025-34468Same product: Libcoap Libcoap
CVE-2025-65494Same product: Libcoap Libcoap
CVE-2025-65497Same product: Libcoap Libcoap
CVE-2025-65501Same product: Libcoap Libcoap

Affected Assets

libcoap
libcoap
4.3.5

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation can discover conversion errors through static analysis, fuzzing, or targeted unit tests.

Requiring documented development standards and tools can enforce coding rules that prohibit or safely wrap such casts.

Engineering principles can mandate safe integer handling and strong typing to avoid unsafe signed-to-unsigned casts.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices (static analysis, code review, safe-integer standards) directly prevent signed-to-unsigned conversion errors.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development can detect conversion-related defects before release.

prevents

Secure development life cycle mandates practices that can catch signed-to-unsigned conversion errors during design and coding.

prevents

Application security requirements can specify safe integer handling and type-conversion rules.

prevents

Secure system architecture and engineering principles include data-type safety and overflow prevention.

prevents

Secure coding standards directly prohibit unsafe signed-to-unsigned casts and require defensive checks.

References