{
  "id": "CVE-2022-30525",
  "url": "https://poc.griffinguard.io/cve/CVE-2022-30525",
  "published_at": "2022-05-12T13:05:11Z",
  "title": "Zyxel Multiple Firewalls OS Command Injection Vulnerability",
  "vendor": "Zyxel",
  "product": "USG FLEX 100(W) firmware",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2022-05-16",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 4
  },
  "first_poc": {
    "created_at": "2022-05-13T12:03:28Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 1,
    "repo": "Henry4E36/CVE-2022-30525",
    "source": "github"
  },
  "poc_repo_count": 14,
  "exploit_count": 3,
  "suspicious_repo_count": 0,
  "edge_device": {
    "category": "Router / network device",
    "confidence": "high",
    "reason": "known edge product: Zyxel USG FLEX 100(W) firmware Zyxel Multiple"
  },
  "description": "A OS command injection vulnerability in the CGI program of Zyxel USG FLEX 100(W) firmware versions 5.00 through 5.21 Patch 1, USG FLEX 200 firmware versions 5.00 through 5.21 Patch 1, USG FLEX 500 firmware versions 5.00 through 5.21 Patch 1, USG FLEX 700 firmware versions 5.00 through 5.21 Patch 1, USG FLEX 50(W) firmware versions 5.10 through 5.21 Patch 1, USG20(W)-VPN firmware versions 5.10 through 5.21 Patch 1, ATP series firmware versions 5.10 through 5.21 Patch 1, VPN series firmware versions 4.60 through 5.21 Patch 1, which could allow an attacker to modify specific files and then execute some OS commands on a vulnerable device.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [
    {
      "repo": "5l1v3r1/CVE-2022-30525-Reverse-Shell",
      "url": "https://github.com/5l1v3r1/CVE-2022-30525-Reverse-Shell",
      "created_at": null,
      "first_seen_at": "2026-11-14T22:17:34.881Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "ExploitPwner/CVE-2022-30525-Zyxel-Mass-Exploiter",
      "url": "https://github.com/ExploitPwner/CVE-2022-30525-Zyxel-Mass-Exploiter",
      "created_at": null,
      "first_seen_at": "2026-11-14T22:17:34.881Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "kuznyJan1972/CVE-2022-30525-mass",
      "url": "https://github.com/kuznyJan1972/CVE-2022-30525-mass",
      "created_at": null,
      "first_seen_at": "2026-11-14T22:17:34.881Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "trhacknon/CVE-2022-30525-Reverse-Shell",
      "url": "https://github.com/trhacknon/CVE-2022-30525-Reverse-Shell",
      "created_at": null,
      "first_seen_at": "2026-11-14T22:17:34.881Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "zhefox/CVE-2022-30525-Reverse-Shell",
      "url": "https://github.com/zhefox/CVE-2022-30525-Reverse-Shell",
      "created_at": null,
      "first_seen_at": "2026-11-14T22:17:34.881Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "Fans0n-Fan/Awesome-IoT-exp",
      "url": "https://github.com/Fans0n-Fan/Awesome-IoT-exp",
      "created_at": "2021-06-07T08:57:01Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "list",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-03-25T11:52:50Z"
    },
    {
      "repo": "jbaines-r7/victorian_machinery",
      "url": "https://github.com/jbaines-r7/victorian_machinery",
      "created_at": "2022-05-10T10:31:19Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 30,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-10-05T14:26:56Z"
    },
    {
      "repo": "Henry4E36/CVE-2022-30525",
      "url": "https://github.com/Henry4E36/CVE-2022-30525",
      "created_at": "2022-05-13T12:03:28Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 22,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-07-31T06:14:45Z"
    },
    {
      "repo": "shuai06/CVE-2022-30525",
      "url": "https://github.com/shuai06/CVE-2022-30525",
      "created_at": "2022-05-13T12:58:43Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 33,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-05-27T14:31:45Z"
    },
    {
      "repo": "savior-only/CVE-2022-30525",
      "url": "https://github.com/savior-only/CVE-2022-30525",
      "created_at": "2022-05-13T18:16:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-08-11T03:38:05Z"
    },
    {
      "repo": "M4fiaB0y/CVE-2022-30525",
      "url": "https://github.com/M4fiaB0y/CVE-2022-30525",
      "created_at": "2022-05-15T06:20:06Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-11-26T07:29:15Z"
    },
    {
      "repo": "YGoldking/CVE-2022-30525",
      "url": "https://github.com/YGoldking/CVE-2022-30525",
      "created_at": "2022-05-16T04:45:43Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-08-20T17:15:20Z"
    },
    {
      "repo": "k0sf/CVE-2022-30525",
      "url": "https://github.com/k0sf/CVE-2022-30525",
      "created_at": "2022-05-16T04:45:43Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-08-20T17:15:20Z"
    },
    {
      "repo": "superzerosec/CVE-2022-30525",
      "url": "https://github.com/superzerosec/CVE-2022-30525",
      "created_at": "2022-05-16T09:15:43Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-11-12T01:31:46Z"
    },
    {
      "repo": "Chocapikk/CVE-2022-30525-Reverse-Shell",
      "url": "https://github.com/Chocapikk/CVE-2022-30525-Reverse-Shell",
      "created_at": "2022-05-18T15:22:17Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-08-06T09:10:49Z"
    },
    {
      "repo": "iveresk/cve-2022-30525",
      "url": "https://github.com/iveresk/cve-2022-30525",
      "created_at": "2022-05-23T16:51:42Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-05-17T10:48:58Z"
    },
    {
      "repo": "west9b/CVE-2022-30525",
      "url": "https://github.com/west9b/CVE-2022-30525",
      "created_at": "2022-05-28T07:19:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 12,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-04-12T13:26:29Z"
    },
    {
      "repo": "west9b/F5-BIG-IP-POC",
      "url": "https://github.com/west9b/F5-BIG-IP-POC",
      "created_at": "2022-05-28T13:30:22Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 10,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-04-12T13:26:29Z"
    },
    {
      "repo": "furkanzengin/CVE-2022-30525",
      "url": "https://github.com/furkanzengin/CVE-2022-30525",
      "created_at": "2022-06-12T19:04:41Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-12-02T17:18:38Z"
    },
    {
      "repo": "ProngedFork/CVE-2022-30525",
      "url": "https://github.com/ProngedFork/CVE-2022-30525",
      "created_at": "2022-06-13T21:11:54Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-06-29T16:25:51Z"
    },
    {
      "repo": "cbk914/CVE-2022-30525_check",
      "url": "https://github.com/cbk914/CVE-2022-30525_check",
      "created_at": "2023-01-15T20:02:24Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 2,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2012-07-25T18:50:11Z"
    },
    {
      "repo": "arajsingh-infosec/CVE-2022-30525_Exploit",
      "url": "https://github.com/arajsingh-infosec/CVE-2022-30525_Exploit",
      "created_at": "2024-02-27T03:31:37Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2024-02-27T03:25:02Z"
    }
  ],
  "remediation": null,
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/50946",
      "source": "exploitdb",
      "title": "Zyxel USG FLEX 5.21 - OS Command Injection",
      "published_at": "2022-06-03T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/zyxel_ztp_rce.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Zyxel Firewall ZTP Unauthenticated Command Injection (exploit/linux/http/zyxel_ztp_rce)",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-30525.yaml",
      "source": "nuclei",
      "title": "nuclei template: Zyxel Firewall - OS Command Injection",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/ztp/cgi-bin/handler",
      "body_markers": [
        "\"command\":\"setWanPortSt\"",
        "\"proto\":\"dhcp\"",
        "\"port\":\"4\"",
        "\"vlan_tagged\":\"1\"",
        "\"vlanid\":\"5\"",
        "\"mtu\"",
        "\"data\":\"request\""
      ],
      "content_type": "application/json",
      "ports": [
        8080,
        9443
      ],
      "user_agents": [
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0",
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36",
        "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
      ],
      "protocol": "http",
      "repos": [
        "Henry4E36/CVE-2022-30525",
        "M4fiaB0y/CVE-2022-30525",
        "ProngedFork/CVE-2022-30525",
        "arajsingh-infosec/CVE-2022-30525_Exploit",
        "savior-only/CVE-2022-30525",
        "shuai06/CVE-2022-30525",
        "superzerosec/CVE-2022-30525"
      ],
      "repo_count": 7,
      "confidence": 0.7,
      "evidence": [
        "Henry4E36/CVE-2022-30525/CVE-2022-30525.py:41",
        "M4fiaB0y/CVE-2022-30525/CVE-2022-30525.py:51",
        "ProngedFork/CVE-2022-30525/CVE-2022-30525.py:43",
        "arajsingh-infosec/CVE-2022-30525_Exploit/CVE-2022-30525.py:43",
        "savior-only/CVE-2022-30525/CVE-2022-30525.py:74",
        "shuai06/CVE-2022-30525/CVE-2022-30525-POC.py:51",
        "superzerosec/CVE-2022-30525/exploit.py:33"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/dns/uwpn82sm/{var}/",
      "query_markers": [
        "token=adb6ca99"
      ],
      "protocol": "http",
      "repos": [
        "west9b/CVE-2022-30525"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "west9b/CVE-2022-30525/Pocdnslog.go:33"
      ]
    },
    {
      "method": "POST",
      "path_template": "//https://{var}/ztp/cgi-bin/handler/ztp/cgi-bin/handler/ztp/cgi-bin/handler",
      "headers": [
        {
          "name": "{var}",
          "value": "{var}"
        }
      ],
      "protocol": "https",
      "repos": [
        "iveresk/cve-2022-30525"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "iveresk/cve-2022-30525/exploit/exploit.go:50"
      ]
    }
  ],
  "rules": []
}
