# CVE-2024-31031: An issue in coappdu.c in libcoap 4.3.4 allows attackers to cause undefined behavior via a sequence of messages leading to unsigned integer…

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.87%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-17T00:00:00.000Z
- Modified: 2026-06-17T07:27:42.017Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- libcoap libcoap: 4.3.4
- fedoraproject fedora: 39; 40

## References

- <https://github.com/obgm/libcoap/issues/1351> (exploit, issue-tracking)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LPENEJBV3KSASIYKNZAKXDAH7Q66KPYG/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TUL7QDYFGEIJVO2ZSG4O5HEAWR6PFC52/> (mailing-list, third-party-advisory, 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/>

## Sources

- CVE List: [CVE-2024-31031](https://www.cve.org/CVERecord?id=CVE-2024-31031), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2024-31031](https://nvd.nist.gov/vuln/detail/CVE-2024-31031), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31031 · Whole record: https://cve.day/CVE-2024-31031.json · Rebuilt by cve.day 2026-11-25T22:58:39.420Z
