CVE-2026-29972

Source
https://cve.org/CVERecord?id=CVE-2026-29972
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-29972.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-29972
Published
2026-05-08T00:00:00Z
Modified
2026-07-15T01:49:01.527015497Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H CVSS Calculator
Summary
[none]
Details

nanoMODBUS through v1.22.0 has a stack-based buffer overflow in recvreadregistersres() in nanomodbus.c. When a client calls nmbsreadholdingregisters() or nmbsreadinputregisters(), the library writes register data from the server response to the caller-provided buffer based on the response's bytecount field before validating that bytecount matches the requested quantity. A malicious Modbus TCP server can send a response with bytecount=250 (125 registers) regardless of the requested quantity, causing up to 248 bytes of attacker-controlled data to overflow the buffer, potentially allowing remote code execution.

Database specific
{
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/29xxx/CVE-2026-29972.json"
}
References

Affected packages

Git / github.com/debevv/nanomodbus

Affected ranges

Type
GIT
Repo
https://github.com/debevv/nanomodbus
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": "DESCRIPTION",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "v1.22.0"
        }
    ]
}

Affected versions

v1.*
v1.0
v1.0.0
v1.0.1
v1.1.0
v1.1.1
v1.10.0
v1.11.0
v1.12.0
v1.12.1
v1.13.0
v1.14.0
v1.14.1
v1.14.2
v1.14.3
v1.15.0
v1.16.0
v1.17.0
v1.17.1
v1.17.2
v1.17.3
v1.18.1
v1.19.0
v1.2.0
v1.2.1
v1.20.0
v1.20.1
v1.21.0
v1.3.0
v1.3.1
v1.4.0
v1.5.0
v1.6.0
v1.7.0
v1.8.0
v1.8.1
v1.9.0
v1.9.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-29972.json"