Read the docs

Stack buffer overflow in snap7 S7 Server WriteVar request handler

Priority HIGH 70CWE-119Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
Low · Low · Low
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

Versions 1.4.0, 1.4.1, 1.4.2 and 1.4.3 of davenardella snap7 are affected. In the S7 Server WriteVar request handler, the ItemsCount argument of TS7Worker::PerformFunctionWrite is not properly bounded, which causes a stack-based buffer overflow (CWE-121). A remote attacker without privileges or user interaction can trigger it. A public exploit has been released and linked in the references.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00491 35th percentileScored 2026-11-30
Public exploit Yes 1 exploit referenceTagged by the CNA
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
davenardellasnap71.4.0; 1.4.1; 1.4.2; 1.4.3—No fix listedCNA
  • snap7 Vendordavenardella Affected 1.4.0; 1.4.1; 1.4.2; 1.4.3 Fixed in — No fix listed CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:davenardella:snap7:*:*:*:*:*:*:*:*——davenardella
  • cpe:2.3:a:davenardella:snap7:*:*:*:*:*:*:*:* Versions — — ·davenardella

Remediation

The sources list no fixed version for snap7.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Timeline

  1. 2026-11-29 Threatist record created from CVE-2026-138109
  2. 2026-11-29 Alias added: GHSA-v48w-w2p2-9h64
  3. 2026-11-30 CISA SSVC decision points changed

References

  • TI-2026-93632 Out-of-bounds write in Snap7 lets malicious PLCs crash clients CVSS 4.0HIGH 8.3
  • TI-2026-75061 snap7 Out-of-Bounds Write via TSnap7MicroClient::opReadArea CVSS 4.0HIGH 8.3
  • TI-2026-13566 davenardella snap7 s7_peer.cpp NegotiatePDULength out-of-bounds write CVSS 4.0MEDIUM 5.3
  • TI-2026-12717 davenardella snap7 ReadVar Request s7_server.cpp PerformFunctionRead out-of-bounds write CVSS 4.0MEDIUM 5.3
  • TI-2026-61586 davenardella snap7 s7_micro_client.cpp opUpload memory corruption CVSS 4.0MEDIUM 5.1
  • TI-2026-93633 Heap buffer overflow in Snap7 lets rogue PLCs corrupt client memory CVSS 4.0HIGH 8.3
See all 7 →

Sources