cbcvebase.
CVE-2013-0662
published 2014-04-01

CVE-2013-0662: Multiple stack-based buffer overflows in ModbusDrv.exe in Schneider Electric Modbus Serial Driver 1.10 through 3.2 allow remote attackers to execute arbitrary…

PriorityP266critical9.3CVSS 2.0
AVNACMAuNCCICAC
EXPLOIT
EPSS
22.29%
97.4th percentile
Multiple stack-based buffer overflows in ModbusDrv.exe in Schneider Electric Modbus Serial Driver 1.10 through 3.2 allow remote attackers to execute arbitrary code via a large buffer-size value in a Modbus Application Header.

Affected

21 ranges
VendorProductVersion rangeFixed in
schneider-electricconcept<= 2.6
schneider-electricmodbus_serial_driver
schneider-electricmodbus_serial_driver
schneider-electricmodbus_serial_driver
schneider-electricmodbuscommdtm_sl<= 2.1.2
schneider-electricopc_factory_server<= 3.5.0
schneider-electricopc_factory_server
schneider-electricopc_factory_server
schneider-electricpl7<= 4.5
schneider-electricpowersuite<= 2.6
schneider-electricsft2841<= 14.0
schneider-electricsft2841
schneider-electricsomachine<= 3.1
schneider-electricsomachine
schneider-electricsomachine
schneider-electricsomove<= 1.7
schneider-electrictwidosuite<= 2.31.04
schneider-electricunity_pro<= 7.0
schneider-electricunity_pro
schneider-electricunityloader<= 2.3
schneider_electricsomachine

Detection & IOCsextracted from sources · hover to see the quote

port27700/TCP
processModbusDrv.exe
commands.send(header); s.send(message) — header: \x00\xAA\xFF\xFF\x08\xDD\xFF, message: \x00\x64 + 'A'*2267
snort
alert tcp any any -> $HOME_NET 27700 (msg:"ET SCADA SEIG Modbus 3.4 - Remote Code Execution"; flow:established,to_server; content:"|42 42 ff ff 07 03 44 00 64|"; fast_pattern; content:"|90 90 90 90 90 90 90 90 90 90|"; distance:0; reference:url,exploit-db.com/exploits/45220/; reference:cve,2013-0662; classtype:attempted-user; sid:2026005; rev:1; metadata:created_at 2018_08_21, cve CVE_2013_0662, confidence High, signature_severity Major, updated_at 2019_07_26, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;)
bytes
|42 42 ff ff 07 03 44 00 64|
bytes
\x00\xAA (header_padding) + \xFF\xFF (header_buffer_size) + \x08\xDD (header_recv_len) + \xFF (header_end)
  • Monitor for TCP connections to port 27700 on hosts running ModbusDrv.exe; this is the exclusive listener port for the vulnerable Modbus Serial Driver and should not receive inbound connections from untrusted networks.
  • Detect exploit attempts by matching the two-stage Snort content pattern: initial header bytes |42 42 ff ff 07 03 44 00 64| followed immediately by a NOP sled |90 90 90 90 90 90 90 90 90 90| in the same TCP stream to port 27700.
  • Flag Modbus Application Header packets where the buffer-size field is set to \xFF\xFF (65535), which is the oversized value used to trigger the stack-based buffer overflow in ModbusDrv.exe.
  • Alert on large payloads (e.g., 2267+ bytes of repeated data) sent to port 27700/TCP immediately after the Modbus Application Header, consistent with the DoS and RCE PoC buffer-fill patterns.
  • Look for the process ModbusDrv.exe spawning unexpected child processes or crashing (access violation), which may indicate successful or attempted exploitation of the stack-based buffer overflow.
  • ·The PoC exploit scripts use hardcoded private IP addresses (192.168.127.137 / .138) as targets; these are lab addresses and not attacker infrastructure — do not treat them as threat IOCs.
  • ·The vulnerability only manifests when ModbusDrv.exe is running, which occurs only when a user attempts to connect to a PLC via serial port through one of the 11 affected Schneider Electric products; the attack surface is therefore conditional on active driver use.
  • ·Exploitation grants code execution only at the privilege level of the user running the vulnerable software, not SYSTEM-level; post-exploitation impact depends on the user context.
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.