CVE-2026-138109

7.3High

Published Nov 29, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

7.3CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
Limited impact
Weakness
CWE-119, CWE-121

What an attacker gets

Remote unauthenticated attackers can trigger a stack-based buffer overflow to crash the service or potentially execute code. This is exploitable via a crafted S7 Server WriteVar request.

Root cause

The TS7Worker::PerformFunctionWrite function fails to properly validate the ItemsCount argument, leading to a stack-based buffer overflow.

Affected versions

snap7 up to 1.4.3

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Fix & remediation

Upgrade to the latest version from the official repository once a release containing the fix for PR #44 is available. Until then, restrict network access to the S7 server port to trusted internal IP addresses only.

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-138109

More fully triaged vulnerabilities you may want to check next.