CVE-2025-65494
HighCVSS 7.5Exploitation Probability (EPSS)
Low risk18th percentile - higher than 18% of all known CVEs
Summary
In OISM libcoap 4.3.5, the get_san_or_cn_from_cert() function in src/coap_openssl.c contains a NULL pointer dereference. A crafted X.509 certificate causes sk_GENERAL_NAME_value() to return NULL, leading to a remote denial of service attack.
Risk Assessment
An attacker can remotely crash a service using libcoap by supplying a crafted certificate. This results in service unavailability for legitimate clients.
Recommendation
Update libcoap to a patched version or implement certificate validation before processing. Monitor the library's releases for security fixes.
Other vulnerabilities in OISM libcoap
See all- CVE-2025-65501Medium
Null pointer dereference in coap_dtls_info_callback() in OISM libcoap 4.3.5 allows remote attackers to cause a denial of service via a DTLS handshake where SSL_get_app_data() returns NULL.
- CVE-2025-65500Medium
NULL pointer dereference in coap_dtls_generate_cookie() in src/coap_openssl.c in OISM libcoap 4.3.5 allows remote attackers to cause a denial of service via a crafted DTLS handshake that triggers SSL_get_SSL_CTX() to return NULL.
- CVE-2025-65499Medium
Array index 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 DTLS handshake that triggers SSL_get_ex_data_X509_STORE_CTX_idx() to return -1.
- CVE-2025-65495High
In OISM libcoap 4.3.5, the tls_verify_call_back() function in src/coap_openssl.c contains an integer signedness error. A crafted TLS certificate causes i2d_X509() to return -1, which is misused as a malloc() size parameter, enabling a remote denial of service attack.
Original NVD description (English source)
NULL pointer dereference in get_san_or_cn_from_cert() in src/coap_openssl.c in OISM libcoap 4.3.5 allows remote attackers to cause a denial of service via a crafted X.509 certificate that causes sk_GENERAL_NAME_value() to return NULL.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

