libcoap Memory Disclosure Vulnerability in OSCORE Configuration Parser

Vulnerability

A memory disclosure vulnerability has been identified in libcoap versions prior to 4.3.5-patches. The issue arises in the OSCORE configuration parser, where an out-of-bounds read may occur while parsing certain configuration values. This flaw allows an attacker to read memory beyond the boundaries of strings, potentially leading to information disclosure or a denial-of-service condition.

Impact

Exploitation of this vulnerability could result in unauthorized memory access, allowing for information disclosure or causing the application to crash.

Reproduction

The vulnerability can be reproduced by calling the 'coap_new_oscore_conf()' function with a specially crafted configuration file that includes a boolean parameter value longer than the string 'false'. This will cause the memory read to extend past the expected boundaries, into the '.rodata' section, potentially leading to a crash or unauthorized memory access.

Remediation

Users can upgrade to libcoap version 4.3.5 or later to address this vulnerability.

Added: Dec 8, 2025, 5:23 PM
Updated: Dec 8, 2025, 6:42 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
6.6
remediation
0.0
relevance
1.4
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.