CVE-2026-138109: davenardella snap7 S7 Server WriteVar Request s7_server.cpp PerformFunctionWrite stack-based overflow
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/s7server.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.
Affected Software
Event History
Frequently Asked Questions
Does exploitation require credentials or user interaction?
No. The supplied vector indicates network exploitation with no privileges required and no user interaction required.
Which deployments should be prioritized for assessment?
Prioritize davenardella snap7 installations up to version 1.4.3 that expose or use the S7 Server WriteVar Request Handler. The affected code is TS7Worker::PerformFunctionWrite in src/core/s7_server.cpp.
Is exploit code publicly available?
Yes. The vulnerability is flagged with a proof of concept, and the advisory states that an exploit has been publicly released.