CVE-2024-36845
NixOS vulnerability analysis and mitigation

Overview

CVE-2024-36845 is a vulnerability discovered in libmodbus version 3.1.6, affecting the modbus_receive() function. The vulnerability was disclosed on May 31, 2024, and involves an invalid pointer issue that can lead to a Denial of Service (DoS) condition when a crafted message is sent to the unit-test-server (NVD, Ubuntu).

Technical details

The vulnerability stems from an invalid pointer manipulation in the modbus_receive() function. The issue occurs when the function incorrectly handles a query pointer or performs out-of-bounds array operations after executing malloc() to allocate memory. This results in the program crashing with an invalid pointer at free(query) (Github Issue).

Impact

When successfully exploited, the vulnerability allows attackers to cause a Denial of Service (DoS) condition in applications using libmodbus. This can result in the application crashing due to invalid pointer manipulation (NVD).

Exploitability

The vulnerability can be triggered by sending a specifically crafted message to the unit-test-server component. A proof of concept exists demonstrating the crash condition through invalid pointer manipulation (Github Issue).

Mitigation and workarounds

The vulnerability affects libmodbus version 3.1.6 and requires evaluation across multiple Ubuntu releases including 24.04 LTS, 22.04 LTS, 20.04 LTS, and 18.04 LTS. Users should monitor for patches and updates from their respective distribution vendors (Ubuntu).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-72898CRITICAL10
  • NixOS logoNixOS
  • metabase
YesYesAug 10, 2026
CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util-sqlite-debuginfo
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util-odbc
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util-mysql
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management