CVE-2023-51847
High · 7.5CVSS
7.5
EPSS
0.6%
Published
Jun 6, 2024
CISA due date
—
Cloudanix analysis
A flaw in software used for device-to-device communication lets remote attackers knock services offline without any login credentials.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A flaw in the coap_context_t function within src/coap_threadsafe.c allows remote unauthenticated attackers to trigger a denial of service by sending crafted CoAP requests that crash or hang the library's thread-safe context handling.
Why it matters to the business
Services and devices relying on Libcoap for constrained network communications can experience sudden unavailability, resulting in operational downtime for IoT, monitoring, or control systems with potential revenue or safety implications.
How an attack unfolds
An attacker identifies a reachable CoAP endpoint using Libcoap, crafts and transmits specially formed requests that exercise the vulnerable thread-safe context code path, and causes the target process to terminate or become unresponsive.
How to fix it
Upgrade Libcoap to a patched release that resolves the thread-safety defect in coap_context_t; apply vendor or community fixes as they become available and rebuild dependent applications.
How to confirm the fix worked
Confirm the installed Libcoap commit is newer than a3ed466, recompile applications, and perform functional testing with malformed CoAP traffic to verify the denial-of-service condition no longer occurs.
Typical attack path
- Locate publicly reachable CoAP services
- Send crafted CoAP packets targeting the coap_context_t implementation
- Trigger resource exhaustion or crash in the thread-safe layer
- Confirm loss of service availability
How to detect it
Examine application and system logs for abrupt crashes or restarts of processes linked to Libcoap, correlate with spikes in inbound CoAP traffic, and review network flow data for repeated requests from the same sources.
What your security team should do
- Prioritize patching Libcoap in all environments handling CoAP traffic
- Restrict network exposure of CoAP endpoints through firewalls or proxies
- Enable application crash reporting and monitor for sudden restarts
The record
An issue in obgm and Libcoap v.a3ed466 allows a remote attacker to cause a denial of service via thecoap_context_t function in the src/coap_threadsafe.c:297:3 component.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libcoap2 | 0 | No fix |
| Debian:12 | libcoap3 | 0 | No fix |
| Debian:13 | libcoap3 | 0 | No fix |
| Debian:14 | libcoap3 | 0 | No fix |
| Ubuntu:18.04:LTS | libcoap | 0 | No fix |
| Ubuntu:20.04:LTS | libcoap2 | 0 | No fix |
| Ubuntu:22.04:LTS | libcoap2 | 0 | No fix |
| Ubuntu:22.04:LTS | libcoap3 | 0 | No fix |
| Ubuntu:24.04:LTS | libcoap3 | 0 | No fix |
| Ubuntu:24.10 | libcoap3 | 0 | No fix |
| Ubuntu:25.04 | libcoap3 | 0 | No fix |
| Ubuntu:25.10 | libcoap3 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | libcoap | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | libcoap2 | 0 | No fix |
Related vulnerabilities
- CVE-2024-46304 A NULL pointer dereference in libcoap v4.3.5-rc2 and below allows a remote attacker to… Also affects libcoap2
- CVE-2024-31031 An issue in `coap_pdu.c` in libcoap 4.3.4 allows attackers to cause undefined behavior… Also affects libcoap3
- CVE-2023-30362 Buffer Overflow vulnerability in coap_send function in libcoap library 4.3.1-103-g52cfd56… Also affects libcoap3
- CVE-2026-113795 pypdf is a free and open-source pure-python PDF library. CWE-400
- CVE-2026-83400 Vulnerability in the Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise… CWE-400
- CVE-2026-112400 Pillow is a Python imaging library. CWE-400
- CVE-2026-111766 markdown-it is a Markdown parser. CWE-400
- CVE-2026-111759 markdown-it is a Markdown parser. CWE-400