Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-9242 PoC — WatchGuard Firebox iked Out of Bounds Write Vulnerability

Source
Associated Vulnerability
Title: WatchGuard Firebox iked Out of Bounds Write Vulnerability (CVE-2025-9242)
Description:An Out-of-bounds Write vulnerability in the WatchGuard Fireware OS iked process may allow a remote unauthenticated attacker to execute arbitrary code. This vulnerability affects both the mobile user VPN with IKEv2 and the branch office VPN using IKEv2 when configured with a dynamic gateway peer. If the Firebox was previously configured with the mobile user VPN with IKEv2 or a branch office VPN using IKEv2 to a dynamic gateway peer, and both of those configurations have since been deleted, that Firebox may still be vulnerable if a branch office VPN to a static gateway peer is still configured.
Description
CVE-2025-9242
Readme
# 🔥 CVE-2025-9242 — Critical WatchGuard Firebox VPN RCE

<img width="1047" height="589" alt="CVE-2025-9242" src="https://github.com/user-attachments/assets/84519a4d-933e-4191-9af8-48dca96e11ba" />

**Remote Unauthenticated Code Execution in Fireware OS (IKEv2)**
**Severity: 9.8 / Critical 🚨**

---

## 🧩 What This Vulnerability Is

* A **remote out-of-bounds write** bug in **Fireware OS’s `iked` process** (IKEv2 VPN engine).
* Allows **unauthenticated attackers on the internet** to **execute arbitrary code** on WatchGuard Firebox appliances.
* Affects **mobile user IKEv2 VPN**, **branch office VPN with dynamic gateway peers**, and sometimes still vulnerable even with **static peers** configured.

---

## 🎯 Attack Surface

* Runs on **UDP 500/4500**, usually publicly exposed for VPN access.
* Exploit requires **no credentials**, no user interaction.
* High-impact RCE → full device takeover → possible network compromise.

---

## 🛑 Affected Fireware OS Versions

📌 **Vulnerable:**

* **11.10.2 – 11.12.4_Update1**
* **12.0 – 12.11.3**
* **2025.1**

📌 **Fixed Versions:**

* **12.11.4**
* **2025.1.1**
* **12.5.13** (T15 & T35)
* **12.3.1_Update3** (FIPS)

---

## 🧠 Technical Breakdown

💥 Vulnerability is caused by unsafe `memcpy()` inside:

* `ike2_ProcessPayload_CERT` — improperly bounds-checked certificate payloads
* Attacker crafts malicious IKEv2 CERT payload → memory corruption → RCE

⚙️ Key characteristics:

* **AV:N / AC:L / PR:N / UI:N**
* **Full confidentiality, integrity, and availability impact**

---

## ⚠️ Why It’s Severe

🔥 Perimeter devices (VPN/firewalls)
🔥 Full system compromise potential
🔥 High-value attack targets
🔥 CISA added it to the **Known Exploited Vulnerabilities (KEV)** list
🔥 Public research & PoC-level descriptions exist

---

## 🛡️ Mitigation & Remediation

### ✅ **Immediate Actions**

* **Update firmware** to the fixed version for your branch.
* **Disable IKEv2 VPN** temporarily if patching is not possible.
* **Restrict VPN exposure** (geo/IP allowlist, upstream firewall rules).
* **Audit logs** for unusual IKEv2 negotiations or repeated CERT payloads.

### 🔍 Detection Checklist

* Strange rekeying patterns
* Large or malformed CERT payloads
* Crashes or restarts of `iked`
* Unexpected outbound connections from the firewall

---

## 🗂️ What to Verify on Your Devices

✔ Fireware OS version
✔ Whether IKEv2 is enabled (mobile/branch office)
✔ If any **dynamic gateway peers** exist
✔ If port **UDP 500/4500** is internet-exposed
✔ Patch status
✔ Log anomalies
✔ Device integrity / configuration tampering

---

## 📚 Additional Notes

* Some devices **remain vulnerable even after removing IKEv2 Mobile VPN** — because **branch office IKEv2 peers** still trigger the vulnerable code path.
* Firebox appliances are widespread across SMEs → large potential exposure.
* Public scanning shows many unpatched devices.
* A publicly available **detection script** exists; functional exploit code may surface.

---

File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →