Integer Underflow Affecting libiec61850 package, versions [1.4.0,1.4.3)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.98% (84th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-LIBIEC61850-2369351
  • published26 Jan 2022
  • disclosed26 Aug 2020
  • creditUnknown

Introduced: 26 Aug 2020

CVE-2020-15158  (opens in a new tab)
CWE-191  (opens in a new tab)

How to fix?

Upgrade libiec61850 to version 1.4.3 or higher.

Overview

Affected versions of this package are vulnerable to Integer Underflow. In libIEC61850 before version 1.4.3, when a message with COTP message length field with value < 4 is received an integer underflow will happen leading to heap buffer overflow. This can cause an application crash or on some platforms even the execution of remote code. If your application is used in open networks or there are untrusted nodes in the network it is highly recommend to apply the patch. This was patched with commit 033ab5b. Users of version 1.4.x should upgrade to version 1.4.3 when available. As a workaround changes of commit 033ab5b can be applied to older versions.

CVSS Scores

version 3.1