Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-5688-FreeRTOS-Plus-TCP-Out-of-Bounds-Write | Kitploit
Tools/GitHubGitHub/mbanyamer/cve-2025-5688-freertos-plus-tcp-out-of-bounds-write
Embedded Systems SecurityIoT SecurityVulnerability AnalysisExploitationFuzzingNetwork SecurityRemote Access ToolDNS AnalysisBinary Exploitation

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHubmbanyamer/cve-2025-5688-freertos-plus-tcp-out-of-bounds-write

CVE-2025-5688-FreeRTOS-Plus-TCP-Out-of-Bounds-Write

View Repository
5 months agoNot yet reviewed

CVE-2025-5688 – FreeRTOS-Plus-TCP Out-of-Bounds Write Exploit

CVE-2025-5688 CVSS 8.4 High Python 3 License: MIT Tested on IoT

Remote memory corruption / DoS / potential RCE trigger in FreeRTOS-Plus-TCP when processing overly long DNS names in LLMNR or mDNS queries (Buffer Allocation Scheme 1).

Exploit Author: Mohammed Idrees Banyamer
Country: Jordan
Instagram: @banyamer_security
Date: December 26, 2025

Overview

This PoC sends a specially crafted UDP multicast packet containing an excessively long DNS name to trigger an out-of-bounds write (CWE-787) in vulnerable versions of FreeRTOS-Plus-TCP (v2.3.4 – v4.3.1 with LLMNR/mDNS + Scheme 1).

Common symptoms on affected devices:

  • Immediate crash / reboot
  • Watchdog reset
  • LED blink loop / freeze
  • In rare memory-layout cases → possible code execution

Affected Devices (examples)

  • Sonoff RF Bridge (unpatched firmware)
  • Many cheap IoT gateways, bridges, embedded controllers using FreeRTOS-Plus-TCP

Fixed in: FreeRTOS-Plus-TCP 4.3.2 (strict length validation added)

References

  • AWS Security Bulletin AWS-2025-012
  • GitHub Advisory GHSA-5x4f-fvv8-wr65
  • NVD CVE-2025-5688

Attack Flow Diagram

root@kitploit:~
graph TD
    A[Attacker on same LAN] -->|"1. Craft oversized DNS name"| B["`UDP Packet
long QNAME (~500+ bytes)`"]
    B -->|"2. Send to multicast"| C{Target Protocol}
    C -->|LLMNR| D[224.0.0.252:5355]
    C -->|mDNS| E[224.0.0.251:5353]
    D --> F["`FreeRTOS-Plus-TCP
LLMNR/mDNS Parser`"]
    E --> F
    F -->|"No length check + Scheme 1"| G[Fixed-size buffer overflow]
    G --> H["`Out-of-bounds Write
CWE-787`"]
    H --> I{Outcome}
    I -->|"Common"| J[Crash / Reboot / Watchdog]
    I -->|"Memory layout dependent"| K[Potential RCE / Code Execution]
    I -->|"Data after buffer"| L[Memory corruption / Info leak]

Requirements

  • Python 3.6+
  • Standard library only (socket, sys) – no external packages

Usage

root@kitploit:~
# LLMNR attack (default multicast)
python3 exploit.py LLMNR

# mDNS attack
python3 exploit.py mDNS

# Custom multicast IP (rarely needed)
python3 exploit.py LLMNR 224.0.0.252
python3 exploit.py mDNS 224.0.0.251

Expected output:

root@kitploit:~
[+] Sending 523-byte LLMNR query → target 224.0.0.252:5355
[+] Sent. Watch for immediate crash, reboot, LED blink loop, or freeze.

How to Test Safely

  1. Use a vulnerable Sonoff RF Bridge or custom FreeRTOS device in an isolated lab network.
  2. Confirm LLMNR/mDNS is enabled (UDP 5355 or 5353 open).
  3. Run the script from another machine on the same LAN.
  4. Observe crash/reboot within seconds.

Disclaimer – Legal & Ethical Notice

This code is provided for educational, research, and vulnerability demonstration purposes only.
Do NOT use this exploit against any system or network without explicit written permission from the owner.
Unauthorized use may violate laws (computer fraud & abuse acts, etc.).
The author is not responsible for any misuse or damage.

License

MIT License – see LICENSE file (or add one if missing).


Download Tool