# CVE-2026-68907: libIEC61850: Server-side out-of-bounds stack read in association-specific dynamic dataset creation due to reversed StringUtils_copyStringToBuffer arguments

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- 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.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-10-16T15:48:33.080Z
- Modified: 2026-10-16T20:04:29.760Z
- Weaknesses: CWE-125, CWE-457, CWE-628
- SSVC (CISA-ADP): exploitation none, automatable no, 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, checkDataSetAccess reverses the source and destination arguments to StringUtils_copyStringToBuffer while constructing an MMS_ASSOCIATION_SPECIFIC dataset reference. The helper treats uninitialized dataSetRef[130] storage as a source string, causing strlen to read beyond the stack buffer, and then copies those bytes into the caller-owned listName buffer. A remote defineNamedVariableList request can crash servers that have dynamic dataset service enabled and a dataset access handler installed; the advisory also observes caller stack corruption but establishes denial of service as the primary impact. 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-7v2x-39mw-2979>
- <https://github.com/mz-automation/libiec61850/commit/062062daf4cb50c7aa76e01d6fb4d58fc9278a7d>
- <https://github.com/mz-automation/libiec61850/releases/tag/v1.6.2>

## Sources

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

---

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