# CVE-2024-40494: Buffer Overflow in coapmsg.c in FreeCoAP allows remote attackers to execute arbitrary code or cause a denial of service (stack buffer overf…

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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): 1.17%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-22T00:00:00.000Z
- Modified: 2026-06-17T07:45:58.693Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

Buffer Overflow in coap_msg.c in FreeCoAP allows remote attackers to execute arbitrary code or cause a denial of service (stack buffer overflow) via a crafted packet.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- keithcullen freecoap: 0.7
- keith-cullen freecoap: 0.7

## References

- <https://github.com/dqp10515/security/tree/main/FreeCoAP_bug> (exploit)
- <https://gist.github.com/dqp10515/e9d7d663cb89187bfe7b39bb3aeb0113> (third-party-advisory)

## Sources

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

---

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