# CVE-2022-4856: Modbus Tools Modbus Slave mbs File mbslave.exe buffer overflow

- Severity: Medium 6.3 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-12-30T09:02:47.469Z
- Modified: 2026-06-17T05:22:02.057Z
- Weaknesses: CWE-120
- Assigned by: VulDB

## Description

A vulnerability has been found in Modbus Tools Modbus Slave up to 7.5.1 and classified as critical. Affected by this vulnerability is an unknown functionality of the file mbslave.exe of the component mbs File Handler. The manipulation leads to buffer overflow. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The identifier VDB-217021 was assigned to this vulnerability.

(As written by CVE List.)

## Affected

- Modbus Tools Modbus Slave: 7.5.0; 7.5.1
- modbustools modbus_slave: up to 7.5.1

## Every score

- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Durian1546/vul/blob/main/webray.com.cn/Modbus%20Slave/Modbus%20Slave%20(version%207.5.1%20and%20earlier)%20mbs%20file%20has%20a%20buffer%20overflow%20vulnerability.md> (exploit, patch, related, third-party-advisory)
- <https://github.com/Durian1546/vul/blob/main/webray.com.cn/Modbus%20Slave/poc/poc.mbs> (exploit, third-party-advisory)
- <https://vuldb.com/?id.217021> (third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.217021> (permissions-required, signature, third-party-advisory)

## Sources

- CVE List: [CVE-2022-4856](https://www.cve.org/CVERecord?id=CVE-2022-4856), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-4856](https://nvd.nist.gov/vuln/detail/CVE-2022-4856), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-4856 · Whole record: https://cve.day/CVE-2022-4856.json · Rebuilt by cve.day 2026-11-25T22:58:17.936Z
