3S CODESYS CmpWebServerHandlerV3 Heap-based Buffer Overflow

critical Nessus Plugin ID 131704
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

A 3S CODESYS V3 environment on the remote host is affected by a remote code execution vulnerability

Description

A heap-based buffer overflow condition exists in CmpWebServerHandlerV3 due to improper validation of user-supplied data. An unauthenticated, remote attacker can exploit this, via a series of specially crafted messages, to cause a denial of service condition or the execution of arbitrary code.

Note that Nessus has not tested for the issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade 3S CODESYS V3 runtime to version 3.5.15.20 or higher.

See Also

http://www.nessus.org/u?e7db7944

Plugin Details

Severity: Critical

ID: 131704

File Name: scada_codesys_2019-10.nbin

Version: 1.17

Type: remote

Family: SCADA

Published: 12/4/2019

Updated: 7/22/2021

Dependencies: scada_codesys_v3_detection.nbin

Risk Information

CVSS Score Source: CVE-2019-18858

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Temporal Vector: E:U/RL:OF/RC:C

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:3s-software:codesys_runtime_system

Required KB Items: SCADA/CoDeSys

Exploit Ease: No known exploits are available

Patch Publication Date: 11/19/2019

Vulnerability Publication Date: 11/19/2019

Reference Information

CVE: CVE-2019-18858