CVE-2026-71265

Domoticz MochadTCP Stack Buffer Overflow via MOCHAD_RFSEC strcpy()

Published Aug 5, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Domoticz's MochadTCP::MatchLine handler for MOCHAD_RFSEC messages (hardware/MochadTCP.cpp) copies network-received data from the up-to-1028-byte m_mochadbuffer into a fixed 50-byte stack buffer tempRFSECbuf using strcpy with no length check, across three separate code branches (DS10A/KR10A/MS10A device types).

Analysis

AI-generated

Technical impact

The Domoticz MochadTCP::MatchLine handler processes MOCHAD_RFSEC messages by copying up to 1028 bytes of network‑received data from the m_mochadbuffer into a fixed 50‑byte stack buffer called tempRFSECbuf using strcpy without length checks. This occurs across three code branches for different device types (DS10A, KR10A, MS10A). The unchecked copy can overflow the stack, corrupt the worker thread’s stack frame, and potentially allow arbitrary code execution or denial of service. This is a classic stack buffer overflow, identified as CWE‑121.

Affected Systems

The vulnerability affects the Domoticz home automation software (domoticz:domoticz). Any deployment that has not applied the patch for this issue is susceptible; specific affected versions are not listed in the advisory, so the entire unpatched code base is at risk.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity of the flaw, and the attack requires an attacker to be on the same local network segment and reach the Mochad TCP bridge on the default port 1099, which has no authentication. The EPSS score of < 1% indicates a low but non‑zero likelihood of exploitation, but the lack of authentication and open port still allow potential attacks. The vulnerability is not currently listed in the CISA KEV catalog. An exploit would likely involve sending a crafted packet to overflow the buffer, corrupt stack memory, and then causing the worker thread to execute arbitrary code or crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Domoticz to the latest release that contains the buffer overflow fix.
  • If an immediate update is not possible, block or restrict access to TCP port 1099 on the local network using firewall rules so that only trusted hosts can reach the Mochad bridge.
  • Monitor Domoticz logs for unexpected crashes or denied requests that might indicate attempts to trigger the overflow and consider isolating the sensor network from the main management network to reduce exposure.

Generated by OpenCVE AI on August 10, 2026 at 21:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Domoticz's MochadTCP::MatchLine() handler for MOCHAD_RFSEC messages (hardware/MochadTCP.cpp) copies network-received data from the up-to-1028-byte m_mochadbuffer into a fixed 50-byte stack buffer tempRFSECbuf using strcpy() with no length check, across three separate code branches (DS10A/KR10A/MS10A device types). An attacker on the local network segment able to reach the Mochad TCP bridge (default port 1099, no authentication) can send a crafted packet that overflows tempRFSECbuf by up to several hundred bytes, corrupting the Domoticz worker thread's stack. Domoticz's MochadTCP::MatchLine handler for MOCHAD_RFSEC messages (hardware/MochadTCP.cpp) copies network-received data from the up-to-1028-byte m_mochadbuffer into a fixed 50-byte stack buffer tempRFSECbuf using strcpy with no length check, across three separate code branches (DS10A/KR10A/MS10A device types).
Title Domoticz - MochadTCP Stack Buffer Overflow via MOCHAD_RFSEC strcpy() Domoticz MochadTCP Stack Buffer Overflow via MOCHAD_RFSEC strcpy()
Type Values Removed Values Added
Title Domoticz MochadTCP Stack Buffer Overflow via MOCHAD_RFSEC strcpy() Domoticz - MochadTCP Stack Buffer Overflow via MOCHAD_RFSEC strcpy()
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Domoticz
Domoticz domoticz
Vendors & Products Domoticz
Domoticz domoticz
Type Values Removed Values Added
Description Domoticz's MochadTCP::MatchLine() handler for MOCHAD_RFSEC messages (hardware/MochadTCP.cpp) copies network-received data from the up-to-1028-byte m_mochadbuffer into a fixed 50-byte stack buffer tempRFSECbuf using strcpy() with no length check, across three separate code branches (DS10A/KR10A/MS10A device types). An attacker on the local network segment able to reach the Mochad TCP bridge (default port 1099, no authentication) can send a crafted packet that overflows tempRFSECbuf by up to several hundred bytes, corrupting the Domoticz worker thread's stack.
Title Domoticz MochadTCP Stack Buffer Overflow via MOCHAD_RFSEC strcpy()
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
TuranSec
Published
Updated
Aug 10, 2026, 11:46 AM
Reserved
Aug 5, 2026, 12:23 PM
Status
Deferred
Published
Aug 5, 2026, 1:24 PM
Modified
Aug 26, 2026, 5:13 PM