Skip to content
Heist/ feed
Back to feed
High

libmodbus — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-34244

libmodbus v3.1.10 is vulnerable to Buffer Overflow via the modbus_write_bits function. This issue can be triggered when the function is fed with specially crafted input, which leads to out-of-bounds read and can potentially cause a crash or other unintended behaviors.

Products
libmodbus
Affected versions
3.0.4-1, 3.0.5-1, 3.0.5-1ubuntu0.1~esm1, 3.0.6-1, 3.0.6-1ubuntu0.1~esm1, 3.0.6-2, 3.0.6-2+deb9u1build0.18.04.1, 3.0.6-2ubuntu0.1~esm1, 3.1.10-1ubuntu1, 3.1.11-2, 3.1.11-2build1, 3.1.6-1, 3.1.6-2, 3.1.6-2.1, 3.2.0-1
Fixed versions
Not specified
CVEs
CVE-2024-34244
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:13 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-34244

core-osv · Original source

Published 8 May 2024, 17:15 UTC

libmodbus v3.1.10 is vulnerable to Buffer Overflow via the modbus_write_bits function. This issue can be triggered when the function is fed with specially crafted input, which leads to out-of-bounds read and can potentially cause a crash or other unintended behaviors.

osv:UBUNTU-CVE-2024-34244

libmodbus

Fixed versions: Not specified

libmodbus

Fixed versions: Not specified

libmodbus

Fixed versions: Not specified

libmodbus

Fixed versions: Not specified

libmodbus

Fixed versions: Not specified

libmodbus

Fixed versions: Not specified

libmodbus

Fixed versions: Not specified

libmodbus

Fixed versions: Not specified

libmodbus

Fixed versions: Not specified

Complete source record
{
  "id": "46bdbfade15d1b54d2e45b939b72bec4a73bd9524246c33c350364150b102702",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-34244",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-34244",
    "summary": "libmodbus v3.1.10 is vulnerable to Buffer Overflow via the modbus_write_bits function. This issue can be triggered when the function is fed with specially crafted input, which leads to out-of-bounds read and can potentially cause a crash or other unintended behaviors.",
    "evidence": "osv:UBUNTU-CVE-2024-34244",
    "products": [
      {
        "name": {
          "value": "libmodbus",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.5-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0.5-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libmodbus",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.6-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.0.6-1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libmodbus",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.6-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.0.6-2ubuntu0.1~esm1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.0.6-2+deb9u1build0.18.04.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libmodbus",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.6-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.1.6-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libmodbus",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.6-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libmodbus",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.6-2.1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.1.10-1ubuntu1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libmodbus",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.11-2",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libmodbus",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.11-2build1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "3.2.0-1",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libmodbus",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1.11-2",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "3.1.11-2build1",
            "evidence": "/affected/8/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2024-34244",
      "aliases": [
        "UBUNTU-CVE-2024-34244"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmodbus",
            "purl": "pkg:deb/ubuntu/libmodbus?arch=source&distro=esm-infra-legacy%2Ftrusty",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "3.0.4-1",
            "3.0.5-1",
            "3.0.5-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-34244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmodbus5",
                "binary_version": "3.0.5-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmodbus",
            "purl": "pkg:deb/ubuntu/libmodbus?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "3.0.6-1",
            "3.0.6-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-34244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmodbus5",
                "binary_version": "3.0.6-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmodbus",
            "purl": "pkg:deb/ubuntu/libmodbus?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "3.0.6-2",
            "3.0.6-2ubuntu0.1~esm1",
            "3.0.6-2+deb9u1build0.18.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-34244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmodbus5",
                "binary_version": "3.0.6-2+deb9u1build0.18.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmodbus",
            "purl": "pkg:deb/ubuntu/libmodbus?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "3.1.6-1",
            "3.1.6-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-34244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmodbus5",
                "binary_version": "3.1.6-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmodbus",
            "purl": "pkg:deb/ubuntu/libmodbus?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "3.1.6-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-34244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmodbus5",
                "binary_version": "3.1.6-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmodbus",
            "purl": "pkg:deb/ubuntu/libmodbus?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.1.6-2.1",
            "3.1.10-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-34244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmodbus5",
                "binary_version": "3.1.10-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmodbus",
            "purl": "pkg:deb/ubuntu/libmodbus?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.1.11-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-34244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmodbus5",
                "binary_version": "3.1.11-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmodbus",
            "purl": "pkg:deb/ubuntu/libmodbus?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.1.11-2build1",
            "3.2.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-34244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmodbus5",
                "binary_version": "3.2.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmodbus",
            "purl": "pkg:deb/ubuntu/libmodbus?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3.1.11-2",
            "3.1.11-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-34244.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmodbus5",
                "binary_version": "3.1.11-2build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:44.944377534Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-34244"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-34244",
        "https://www.cve.org/CVERecord?id=CVE-2024-34244"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-34244",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356137,
  "published_at": "2024-05-08T17:15:00+00:00"
}