Skip to content
OpenAdvisories
High · 7.5 CVE-2024-31031 EUVD-2024-28949GHSA-8hrj-6457-w65j

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 integ…

Published Apr 17, 2024 · Updated Nov 4, 2025 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcoap3 4.3.5-1 —
Debian 13 libcoap3 4.3.4-1.1+deb13u1 —
Debian 12 libcoap3 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libcoap3 No fix yet —
Ubuntu 26.04 LTS libcoap3 No fix yet —
Ubuntu 25.10 libcoap3 No fix yet —
Ubuntu 24.04 LTS libcoap3 No fix yet —
Ubuntu 22.04 LTS libcoap2 +1 No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libcoap2 No fix yet —

References