# CVE-2026-68908: libIEC61850: Oversized RptID can trigger invalid free of a stack-backed visible string in the report send path

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-16T15:47:25.012Z
- Modified: 2026-10-16T20:04:29.760Z
- Weaknesses: CWE-590, CWE-664, CWE-763
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

libIEC61850 is an open-source implementation of IEC 61850 client and server protocols including MMS, GOOSE, Sampled Values, and R-Session. Prior to 1.6.2, Reporting_RCBWriteAccessHandler accepts an RptID longer than 129 bytes in the report-control-block write path. When GI later causes sendNextReportEntrySegment to serialize the report, the function wraps rptIdBuf[130] as a temporary MmsValue and passes it to MmsValue_setVisibleString. The setter's resize path frees the stack-backed buffer, allowing a remote client to trigger an invalid free and server crash by writing the oversized RptID and then generating a report. This issue is fixed in version 1.6.2.

(As written by CVE List.)

## Affected

- mz-automation libiec61850: < 1.6.2

## References

- <https://github.com/mz-automation/libiec61850/security/advisories/GHSA-7qg8-hm25-rv5v> (exploit)
- <https://github.com/mz-automation/libiec61850/commit/5b2a69f44256b8548927d8afdd7ac5f5381abe1e>
- <https://github.com/mz-automation/libiec61850/releases/tag/v1.6.2>

## Sources

- CVE List: [CVE-2026-68908](https://www.cve.org/CVERecord?id=CVE-2026-68908), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-68908](https://nvd.nist.gov/vuln/detail/CVE-2026-68908), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-68908 · Whole record: https://cve.day/CVE-2026-68908.json · Rebuilt by cve.day 2026-11-25T22:59:45.065Z
