Skip to main content
CVE-2024-31031VulnerabilityPublished Updated

CVE-2024-31031: libcoap · n/a

Affects libcoapSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
GitHubobgm/libcoappkg:github/obgm/libcoapOther threatsAffected
  • =4.3.4
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Monitor vendor communications and security advisories for official patches or updates addressing CVE-2024-31031 and apply them promptly once available. 2. Implement network-level filtering to restrict access to CoAP services only to trusted sources, reducing exposure to unauthenticated remote attacks. 3. Employ anomaly detection systems to identify unusual CoAP message sequences that could indicate exploitation attempts. 4. Where feasible, apply strict input validation and sanity checks on CoAP message sizes and sequences within custom implementations or wrappers around libcoap. 5. Segment IoT and constrained device networks from critical infrastructure to limit the blast radius of potential denial of service attacks. 6. Conduct regular security assessments and penetration tests focusing on IoT communication protocols to identify similar weaknesses. 7. Maintain up-to-date inventories of devices and software versions using libcoap to prioritize remediation efforts effectively.

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.

References

Community reviews

Loading reviews…