Medium
libmodbus — security advisory
An invalid pointer in the modbus_receive() function of libmodbus v3.1.6 allows attackers to cause a Denial of Service (DoS) via a crafted message sent to the unit-test-server.
- 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-36845
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:08 UTC · Revision 1
Source evidence
An invalid pointer in the modbus_receive() function of libmodbus v3.1.6 allows attackers to cause a Denial of Service (DoS) via a crafted message sent to the unit-test-server.
osv:UBUNTU-CVE-2024-36845
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": "58f91825bec8fab95c795e44781131dfb1bc2539a0b6598d8194c8a919b1020e",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-36845",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2024-36845",
"summary": "An invalid pointer in the modbus_receive() function of libmodbus v3.1.6 allows attackers to cause a Denial of Service (DoS) via a crafted message sent to the unit-test-server.",
"evidence": "osv:UBUNTU-CVE-2024-36845",
"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": "medium",
"structured": {
"id": "UBUNTU-CVE-2024-36845",
"aliases": [
"UBUNTU-CVE-2024-36845"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
},
{
"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-36845.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-36845.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-36845.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-36845.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-36845.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-36845.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-36845.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-36845.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-36845.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libmodbus5",
"binary_version": "3.1.11-2build1"
}
]
}
}
],
"modified": "2026-10-17T12:56:37.984988295Z",
"provider": "osv",
"upstream": [
"CVE-2024-36845"
],
"references": [
"https://ubuntu.com/security/CVE-2024-36845",
"https://www.cve.org/CVERecord?id=CVE-2024-36845",
"https://github.com/stephane/libmodbus/issues/750"
]
},
"related_cves": [
{
"value": "CVE-2024-36845",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355879,
"published_at": "2024-05-31T20:15:00+00:00"
}