# CVE-2020-15158: Heap buffer overflow in libIEC61850

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H`
- 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): 2.04%, higher than 82% of CVEs (2026-11-30)
- Published: 2020-08-26T18:00:16.000Z
- Modified: 2026-06-17T02:56:09.973Z
- Weaknesses: CWE-119, CWE-122, CWE-191
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- mz-automation libiec61850: < 1.4.3; from 1.4.0 before 1.4.3

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/mz-automation/libiec61850/security/advisories/GHSA-pq77-fmf7-hjw8> (third-party-advisory)
- <https://github.com/mz-automation/libiec61850/issues/250> (third-party-advisory)
- <https://github.com/mz-automation/libiec61850/commit/033ab5b6488250c8c3b838f25a7cbc3e099230bb> (patch, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2020-15158 · Whole record: https://cve.day/CVE-2020-15158.json · Rebuilt by cve.day 2026-11-25T22:57:54.391Z
