# CVE-2026-138109: davenardella snap7 S7 Server WriteVar Request s7_server.cpp PerformFunctionWrite stack-based overflow

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- 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.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-29T03:15:10.831Z
- Modified: 2026-11-30T18:18:49.120Z
- Weaknesses: CWE-119, CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulDB

## Description

A security flaw has been discovered in davenardella snap7 up to 1.4.3. Affected is the function TS7Worker::PerformFunctionWrite of the file src/core/s7_server.cpp of the component S7 Server WriteVar Request Handler. The manipulation of the argument ItemsCount results in stack-based buffer overflow. The attack can be executed remotely. The exploit has been released to the public and may be used for attacks.

(As written by CVE List.)

## Affected

- davenardella snap7: 1.4.0; 1.4.1; 1.4.2; 1.4.3

## Every score

- VulDB: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C`
- VulDB: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C`
- VulDB: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C`

## References

- <https://github.com/davenardella/snap7/issues/42> (exploit, issue-tracking)
- <https://vuldb.com/vuln/445027> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/445027/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-138109> (third-party-advisory)
- <https://vuldb.com/submit/1074225> (third-party-advisory)
- <https://github.com/davenardella/snap7/pull/44> (issue-tracking, patch)
- <https://github.com/davenardella/snap7/> (product)

## Sources

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

---

Page: https://cve.day/CVE-2026-138109 · Whole record: https://cve.day/CVE-2026-138109.json · Rebuilt by cve.day 2026-11-30T18:32:26.754Z
