Vulnerability · Published Apr 17, 2024 · Assigned by mitre
CVE-2024-31031
High 7.5
In plain English
A high-severity integer overflow in the libcoap3 package (Debian). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.9%top 40.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
An issue in `coap_pdu.c` in libcoap 4.3.4 allows attackers to cause undefined behavior via a sequence of messages leading to unsigned integer overflow.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libcoap3 | no fix listed | DEBIAN-CVE-2024-31031 |
| Debian:13 | libcoap3 | 4.3.4-1.1+deb13u1 | DEBIAN-CVE-2024-31031 |
| Debian:14 | libcoap3 | 4.3.5-1 | DEBIAN-CVE-2024-31031 |
| Ubuntu:22.04:LTS | libcoap2 | no fix listed | UBUNTU-CVE-2024-31031 |
| Ubuntu:22.04:LTS | libcoap3 | no fix listed | UBUNTU-CVE-2024-31031 |
| Ubuntu:24.04:LTS | libcoap3 | no fix listed | UBUNTU-CVE-2024-31031 |
| Ubuntu:25.10 | libcoap3 | no fix listed | UBUNTU-CVE-2024-31031 |
| Ubuntu:26.04:LTS | libcoap3 | no fix listed | UBUNTU-CVE-2024-31031 |
| Ubuntu:26.10 | libcoap3 | no fix listed | UBUNTU-CVE-2024-31031 |
Affected products (as reported)
Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/obgm/libcoap/issues/1351
- FEDORA-2024-450b75e4a0 vendor-advisory
- FEDORA-2024-75863445ff vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TUL7QDYFGEIJVO2ZSG4O5HEAWR6PFC52/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LPENEJBV3KSASIYKNZAKXDAH7Q66KPYG/