Skip to main content
VulnerabilityPublished

CVE-2025-59391: libcoap · Out-of-bounds Read

Affects libcoapSource CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium : upgrade to 4.3.5 when convenient.

Data as of 26 Oct 2026, 11:42 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.3.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade obgm/libcoap to 4.3.5.

Affected software

ProductAffectedFixed in
GitHubobgm/libcoappkg:github/obgm/libcoapOther threatsAffected
  • <4.3.5
Fixed in
  • 4.3.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. 2. Implement strict validation and sanitization of configuration inputs to prevent malformed or malicious data from reaching the OSCORE configuration parser. 3. Restrict access to configuration interfaces to trusted administrators and authenticated systems only, minimizing the attack surface. 4. Monitor configuration changes and logs for unusual or unauthorized modifications that could indicate exploitation attempts. 5. Employ network segmentation and access controls to limit exposure of devices running libcoap to untrusted networks or users. 6. Conduct regular security assessments and penetration testing focused on IoT and constrained device environments to detect similar vulnerabilities. 7. Educate operational teams about the risks associated with configuration management and the importance of timely patching in IoT ecosystems.

Description

A memory disclosure vulnerability exists in libcoap's OSCORE configuration parser in libcoap before release-4.3.5-patches. An out-of-bounds read may occur when parsing certain configuration values, allowing an attacker to infer or read memory beyond string boundaries in the .rodata section. This could potentially lead to information disclosure or denial of service.

References

Community reviews

Loading reviews…