CVE-2023-30362
High · 7.5CVSS
7.5
EPSS
0.8%
Published
Jun 23, 2023
CISA due date
—
Cloudanix analysis
A bug in software used for device communication might allow outsiders to access private information without needing special access.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A buffer overflow in the coap_send function permits reading beyond allocated memory bounds when processing a malformed protocol data unit, resulting in disclosure of sensitive information.
Why it matters to the business
Organizations using the affected library in network-enabled devices face risk of sensitive data exposure, which could lead to privacy breaches or further attacks, though exploitation likelihood remains low based on available metrics.
How an attack unfolds
An attacker crafts a malformed PDU and sends it to a vulnerable libcoap implementation, triggering the buffer overflow in coap_send to leak memory contents containing sensitive information.
How to fix it
Update the libcoap library to version 4.3.1-120-ge242200 or later to address the buffer overflow.
How to confirm the fix worked
Verify the library version is updated; perform fuzz testing with malformed PDUs to confirm no overflow occurs.
Typical attack path
- Identify vulnerable libcoap instance via network scanning
- Craft malformed CoAP PDU targeting the coap_send function
- Transmit the PDU over the network
- Capture leaked sensitive data from memory disclosure
How to detect it
Examine network logs for malformed CoAP packets; look for unusual memory access patterns or crashes in libcoap processes; no specific public exploitation artifacts known.
What your security team should do
- Prioritize updating libcoap in all affected deployments
- Monitor for unusual CoAP traffic patterns
- Review data exposure risks in constrained network environments
The record
Buffer Overflow vulnerability in coap_send function in libcoap library 4.3.1-103-g52cfd56 fixed in 4.3.1-120-ge242200 allows attackers to obtain sensitive information via malformed pdu.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | libcoap3 | 0 | No fix |
| Debian:13 | libcoap3 | 0 | 4.3.1-2 |
| 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:25.04 | libcoap3 | 0 | No fix |
| Ubuntu:25.10 | libcoap3 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | libcoap | 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 libcoap3
- CVE-2023-51847 An issue in obgm and Libcoap v.a3ed466 allows a remote attacker to cause a denial of… Also affects libcoap3
- CVE-2024-31031 An issue in `coap_pdu.c` in libcoap 4.3.4 allows attackers to cause undefined behavior… Also affects libcoap3
- CVE-2026-92824 A flaw was found in libmodulemd. CWE-125
- CVE-2026-114038 A flaw was found in device-mapper-multipath. CWE-125
- CVE-2026-112896 Pillow is a Python imaging library. CWE-125
- CVE-2026-112278 rdesktop through 1.9.0 contains a heap out-of-bounds read vulnerability in… CWE-125
- CVE-2026-112273 libtins through 4.6 contains a heap out-of-bounds read vulnerability in DNS::compose_name… CWE-125