libmodbus src/modbus.c modbus_reply heap-based overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.5$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, has been found in libmodbus. This affects the function modbus_reply of the file src/modbus.c. Performing a manipulation results in heap-based overflow. This vulnerability is known as CVE-2022-0367. No exploit is available. It is recommended to apply a patch to fix this issue.

Detailsinfo

A vulnerability classified as critical has been found in libmodbus (affected version unknown). This affects the function modbus_reply of the file src/modbus.c. The manipulation with an unknown input leads to a heap-based overflow vulnerability. CWE is classifying the issue as CWE-122. A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c.

The weakness was published 08/29/2022 as 614. It is possible to read the advisory at github.com. This vulnerability is uniquely identified as CVE-2022-0367 since 01/25/2022. Technical details of the vulnerability are known, but there is no available exploit.

The vulnerability scanner Nessus provides a plugin with the ID 232625 (Debian dla-4084 : libmodbus-dev - security update), which helps to determine the existence of the flaw in a target environment.

Applying the patch b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6 is able to eliminate this problem. The bugfix is ready for download at github.com.

The vulnerability is also documented in the vulnerability database at Tenable (232625). Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Name

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.6
VulDB Meta Temp Score: 6.5

VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Heap-based overflow
CWE: CWE-122 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Partially

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 232625
Nessus Name: Debian dla-4084 : libmodbus-dev - security update

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔍

Patch: b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6

Timelineinfo

01/25/2022 🔍
08/29/2022 +215 days 🔍
08/29/2022 +0 days 🔍
11/05/2025 +1164 days 🔍

Sourcesinfo

Advisory: 614
Status: Confirmed

CVE: CVE-2022-0367 (🔍)
GCVE (CVE): GCVE-0-2022-0367
GCVE (VulDB): GCVE-100-207495

Entryinfo

Created: 08/29/2022 19:37
Updated: 11/05/2025 08:35
Changes: 08/29/2022 19:37 (41), 10/09/2022 11:01 (11), 03/12/2025 07:33 (16), 11/05/2025 08:35 (1)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!