{"id":"CVE-2024-31031","details":"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.","modified":"2026-08-12T03:51:12.321496924Z","published":"2024-04-17T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31031.json"},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LPENEJBV3KSASIYKNZAKXDAH7Q66KPYG/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TUL7QDYFGEIJVO2ZSG4O5HEAWR6PFC52/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31031.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LPENEJBV3KSASIYKNZAKXDAH7Q66KPYG/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TUL7QDYFGEIJVO2ZSG4O5HEAWR6PFC52/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31031"},{"type":"REPORT","url":"https://github.com/obgm/libcoap/issues/1351"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/obgm/libcoap","events":[{"introduced":"f6a9d52ccf791060fd8233d85ba9d87878de6e04"},{"last_affected":"f6a9d52ccf791060fd8233d85ba9d87878de6e04"}],"database_specific":{"extracted_events":[{"introduced":"4.3.4"},{"last_affected":"4.3.4"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:libcoap:libcoap:4.3.4:*:*:*:*:*:*:*"}}],"versions":["4.3.4","v4.3.4a"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31031.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}