CVE-2025-34468

libcoap Stack-Based Buffer Overflow in Address Resolution DoS or Potential RCE

State
Published
Severity
8.2 High
Published
Dec 31, 2025
Updated
Jul 14, 2026
Reserved
Apr 15, 2025

Read the record on cve.org

Description

libcoap versions up to and including 4.3.5, prior to commit 30db3ea, contain a stack-based buffer overflow in address resolution when attacker-controlled hostname data is copied into a fixed 256-byte stack buffer without proper bounds checking. A remote attacker can trigger a crash and potentially achieve remote code execution depending on compiler options and runtime memory protections. Exploitation requires the proxy logic to be enabled (i.e., the proxy request handling code path in an application using libcoap).

Scores

CVSSScoreVectorSource
4.08.2 HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NVulnCheck

Weaknesses

  • CWE-121 Stack-based Buffer Overflow

Affected Products

ProductVersions
libcoaplibcoap
  • 4.3.5 and earlierAffected
  • 30db3eaa1f0464722ebea2ca2d5084aebfbd344dNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.