# CVE-2024-40493: Null Pointer Dereference in coapclientexchangeblockwise2 function in Keith Cullen FreeCoAP 1.0 allows remote attackers to cause a denial of…

- Severity: Medium 5.3 (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:L`
- 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.78%, higher than 57% 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.527Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## Description

Null Pointer Dereference in `coap_client_exchange_blockwise2` function in Keith Cullen FreeCoAP 1.0 allows remote attackers to cause a denial of service and potentially execute arbitrary code via a specially crafted CoAP packet that causes `coap_msg_get_payload(resp)` to return a null pointer, which is then dereferenced in a call to `memcpy`.

(As written by CVE List.)

## Affected

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

## Every score

- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/keith-cullen/FreeCoAP/issues/37> (exploit, issue-tracking)
- <https://gist.github.com/dqp10515/fe80005e2fb58ed8ada178ac017e4ad4> (third-party-advisory)

## Sources

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

---

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