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.
Published: 2026-08-05
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A stack buffer overflow occurs in Domoticz’s MochadTCP::MatchLine handler when processing MOCHAD_RFSEC messages. The handler copies up to 1028 bytes of network data into a fixed 50‑byte stack buffer using strcpy without bounds checking, which can corrupt the worker thread’s stack and potentially lead to arbitrary code execution or denial of service. The flaw is a classic CWE‑121 overflow condition.

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. While no EPSS score is available, the lack of authentication makes exploitation possible in environments that expose the port. 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.

Generated by OpenCVE AI on August 5, 2026 at 14:56 UTC.

Remediation

No vendor fix or workaround currently provided.

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 5, 2026 at 14:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Domoticz
Domoticz domoticz
Vendors & Products Domoticz
Domoticz domoticz

Wed, 05 Aug 2026 13:15:00 +0000

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'}


Subscriptions

Domoticz Domoticz
cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-05T15:30:10.335Z

Reserved: 2026-08-05T12:23:34.967Z

Link: CVE-2026-71265

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T15:15:05Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow