CVE-2024-10918: Stack-based Buffer Overflow in libmodbus library
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
libmodbusto a version that resolves this vulnerability.Fixed in v3.1.11
Event History
Frequently Asked Questions
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.
How do I fix CVE-2024-10918?
To fix CVE-2024-10918, update libmodbus to the latest version that addresses this vulnerability.
What systems are affected by CVE-2024-10918?
CVE-2024-10918 affects all installations of libmodbus v3.1.10.
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.
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.