CVE-2025-34468 libcoap Stack-Based Buffer Overflow in Address Resolution DoS or Potential RCE
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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).
Upgrade path
11 packages: 4 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux libcap(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| debian/libcoap3(Debian 12) | = 4.3.1-1; = 4.3.1-2; = 4.3.3-1; = 4.3.4-1 +7 more | No fix listed | No fix yet |
| ubuntu/libcoap2(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libcoap3(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libcoap3(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libcoap3(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libcoap3(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/libcoap3(Debian 13) | < 4.3.4-1.1+deb13u3; = 4.3.4-1.1; = 4.3.4-1.1+deb13u1; = 4.3.4-1.1+deb13u2 | 4.3.4-1.1+deb13u3 | Fixed |
| debian/libcoap3(Debian 14) | < 4.3.5-3; = 4.3.4-1.1; = 4.3.5-1; = 4.3.5-2 | 4.3.5-3 | Fixed |
| libcoap | <= 4.3.5 | after 4.3.5 | Fixed |
| obgm/libcoap | <= 4.3.5 | after 4.3.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux libcap(Azure Linux:3.0) | All versions | No fix listed |
| debian/libcoap3(Debian:12) | All versions | No fix listed |
| debian/libcoap3(Debian:12) | = 4.3.1-1 | No fix listed |
| debian/libcoap3(Debian:12) | = 4.3.1-2 | No fix listed |
| debian/libcoap3(Debian:12) | = 4.3.3-1 | No fix listed |
| debian/libcoap3(Debian:12) | = 4.3.4-1 | No fix listed |
| debian/libcoap3(Debian:12) | = 4.3.4-1.1 | No fix listed |
| debian/libcoap3(Debian:12) | = 4.3.4-1.1~exp1 | No fix listed |
| debian/libcoap3(Debian:12) | = 4.3.5-1 | No fix listed |
| debian/libcoap3(Debian:12) | = 4.3.5-2 | No fix listed |
| debian/libcoap3(Debian:12) | = 4.3.5-3 | No fix listed |
| debian/libcoap3(Debian:12) | = 4.3.5-4 | No fix listed |
| debian/libcoap3(Debian:13) | < 4.3.4-1.1+deb13u3 | 4.3.4-1.1+deb13u3 |
| debian/libcoap3(Debian:13) | = 4.3.4-1.1 | No fix listed |
| debian/libcoap3(Debian:13) | = 4.3.4-1.1+deb13u1 | No fix listed |
| debian/libcoap3(Debian:13) | = 4.3.4-1.1+deb13u2 | No fix listed |
| debian/libcoap3(Debian:14) | < 4.3.5-3 | 4.3.5-3 |
| debian/libcoap3(Debian:14) | = 4.3.4-1.1 | No fix listed |
| debian/libcoap3(Debian:14) | = 4.3.5-1 | No fix listed |
| debian/libcoap3(Debian:14) | = 4.3.5-2 | No fix listed |
| obgm/libcoap | <= 4.3.5 | No fix listed |
| ubuntu/libcoap2(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/libcoap3(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/libcoap3(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libcoap3(Ubuntu:26.04) | All versions | No fix listed |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/libcoap3(Ubuntu:26.10) | All versions | No fix listed |
| libcoap | <= 4.3.5 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- Debian Security Tracker CVE-2025-34468 vendor-advisory
- github.com issue-tracking patch
- github.com patch
- libcoap.net product
- www.vulncheck.com third-party-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2025-206064 third-party-advisory