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

Published Feb 27, 2025
·
Updated

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.

Affected Software

2 affected components
libmodbus libmodbus
libmodbus libmodbus=3.1.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libmodbus to a version that resolves this vulnerability.

    Fixed in v3.1.11

Event History

Feb 27, 2025
CVE Published
via MITRE·11:44 AM
Data Sourced
via MITRE·11:44 AM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·12:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-10918?

CVE-2024-10918 has a high severity rating due to its potential to cause a stack-based buffer overflow.

2

How do I fix CVE-2024-10918?

To fix CVE-2024-10918, update libmodbus to the latest version that addresses this vulnerability.

3

What systems are affected by CVE-2024-10918?

CVE-2024-10918 affects all installations of libmodbus v3.1.10.

4

What type of attack can CVE-2024-10918 enable?

CVE-2024-10918 can enable attackers to execute arbitrary code or crash the application due to the buffer overflow.

5

Is there a workaround for CVE-2024-10918 if immediate patching isn't possible?

If patching isn't possible for CVE-2024-10918, limiting access to the Modbus interface may help mitigate the risk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203