Nezha
Nezha Monitoring: RoleMember can run shell on every server (cross-tenant RCE) via POST /api/v1/cron
Nezha Monitoring is a self-hostable, lightweight, servers and websites monitoring and O&M tool. From version 1.4.0 to before version 2.0.8, a RoleMember user can create a scheduled cron task with Cover=CronCoverAll, Servers=[] and an arbitrary Command. At every tick of the scheduler, the dashboard pushes that command to every server in the global ServerShared map — including servers that belong to other tenants (admin's servers, other members' servers). Each agent runs the command and returns the output, which is then sent to the attacker's own NotificationGroup → attacker-controlled webhook. This issue has been patched in version 2.0.8.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.4.0, < 2.0.8
Fixed in 2.0.8
Mitigation
Upgrade nezha to 2.0.8 or later.
References
- Vendor advisory github.com/nezhahq/nezha/security/advisories/G…
Timeline
Days relative to CVE publicationFirst public PoC 14 days before publication; not in CISA KEV. First PoC: HAERIN-L/POC_CVE-2026-46716 (created 30 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| HAERIN-L/POC_CVE-2026-46716 | 30 May 2026 −14 d | 0 | PoC |
| wangp0tato/POC_CVE-2026-46716 | 30 May 2026 −14 d | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /api/v1/setting
- Key headers
Authorization: Bearer {var}Authorization: Bearer $admin_token- Ports
- 8008, 8009
- Seen in
- 2 repos: HAERIN-L/POC_CVE-2026-46716, wangp0tato/POC_CVE-2026-46716
- Evidence
- HAERIN-L/POC_CVE-2026-46716/nuclei/CVE-2026-46716.yaml:71 HAERIN-L/POC_CVE-2026-46716/scripts/03-trigger-cve.sh:36 wangp0tato/POC_CVE-2026-46716/nuclei/CVE-2026-46716.yaml:71 wangp0tato/POC_CVE-2026-46716/scripts/03-trigger-cve.sh:36
POST /api/v1/login
- Body markers
"username":"admin""password":"admin""username""password""username":"{var}""password":"{var}""username":"member""password":"Memberpass123!"inapplication/json- Ports
- 8008, 8009
- Seen in
- 2 repos: HAERIN-L/POC_CVE-2026-46716, wangp0tato/POC_CVE-2026-46716
- Evidence
- HAERIN-L/POC_CVE-2026-46716/REPORT/LAB_REPORT_KR.md:48 HAERIN-L/POC_CVE-2026-46716/nuclei/CVE-2026-46716.yaml:46 HAERIN-L/POC_CVE-2026-46716/scripts/03-trigger-cve.sh:26 HAERIN-L/POC_CVE-2026-46716/scripts/03-trigger-cve.sh:61 HAERIN-L/POC_CVE-2026-46716/scripts/03-trigger-cve.sh:101 wangp0tato/POC_CVE-2026-46716/REPORT/LAB_REPORT_KR.md:48
POST /api/v1/cron
- Key headers
Authorization: Bearer $member_tokenAuthorization: Bearer {var}- Content-Type
application/json- Ports
- 8008, 8009
- Seen in
- 2 repos: HAERIN-L/POC_CVE-2026-46716, wangp0tato/POC_CVE-2026-46716
- Evidence
- HAERIN-L/POC_CVE-2026-46716/scripts/03-trigger-cve.sh:67 wangp0tato/POC_CVE-2026-46716/scripts/03-trigger-cve.sh:67
POST /api/v1/user
- Key headers
Authorization: Bearer {var}- Body markers
"username":"member""password":"Memberpass123!""role"inapplication/json- Ports
- 8008
- Seen in
- 2 repos: HAERIN-L/POC_CVE-2026-46716, wangp0tato/POC_CVE-2026-46716
- Evidence
- HAERIN-L/POC_CVE-2026-46716/REPORT/LAB_REPORT_KR.md:54 wangp0tato/POC_CVE-2026-46716/REPORT/LAB_REPORT_KR.md:54 wangp0tato/POC_CVE-2026-46716/scripts/01-setup.sh:43
DELETE /api/v1/cron/$cron_id
- Key headers
Authorization: Bearer $admin_token- Ports
- 8008, 8009
- Seen in
- 1 repo: HAERIN-L/POC_CVE-2026-46716
- Evidence
- HAERIN-L/POC_CVE-2026-46716/scripts/03-trigger-cve.sh:106
DELETE /api/v1/cron/{var}
- Key headers
Authorization: Bearer {var}- Ports
- 8008, 8009
- Seen in
- 1 repo: wangp0tato/POC_CVE-2026-46716
- Evidence
- wangp0tato/POC_CVE-2026-46716/scripts/03-trigger-cve.sh:106
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1/setting(?:[?#].*)?$
(?i)^/api/v1/login(?:[?#].*)?$
(?i)^/api/v1/cron(?:[?#].*)?$
(?i)^/api/v1/user(?:[?#].*)?$
(?i)^/api/v1/cron/\$cron_id(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8008,8009] (msg:"GG PoC-Monitor CVE-2026-46716 nezhahq nezha exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/setting"; http.header; content:"Authorization: Bearer "; nocase; http.header; content:"Authorization: Bearer $admin_token"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-46716; classtype:web-application-attack; sid:9196971; rev:1;)
alert http any any -> $HOME_NET [8008,8009] (msg:"GG PoC-Monitor CVE-2026-46716 nezhahq nezha exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/login"; http.request_body; content:"|22|username|22|:|22|admin|22|"; http.request_body; content:"|22|password|22|:|22|admin|22|"; http.request_body; content:"|22|username|22|"; http.request_body; content:"|22|password|22|"; http.request_body; content:"|22|username|22|:|22|"; http.request_body; content:"|22|password|22|:|22|"; http.request_body; content:"|22|username|22|:|22|member|22|"; http.request_body; content:"|22|password|22|:|22|Memberpass123!|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-46716; classtype:web-application-attack; sid:9356874; rev:1;)
alert http any any -> $HOME_NET [8008,8009] (msg:"GG PoC-Monitor CVE-2026-46716 nezhahq nezha exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/cron"; http.header; content:"Authorization: Bearer $member_token"; nocase; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-46716; classtype:web-application-attack; sid:9369617; rev:1;)
alert http any any -> $HOME_NET [8008] (msg:"GG PoC-Monitor CVE-2026-46716 nezhahq nezha exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/user"; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"|22|username|22|:|22|member|22|"; http.request_body; content:"|22|password|22|:|22|Memberpass123!|22|"; http.request_body; content:"|22|role|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-46716; classtype:web-application-attack; sid:9231130; rev:1;)
alert http any any -> $HOME_NET [8008,8009] (msg:"GG PoC-Monitor CVE-2026-46716 nezhahq nezha exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/api/v1/cron/$cron_id"; http.header; content:"Authorization: Bearer $admin_token"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-46716; classtype:web-application-attack; sid:9078703; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: nezhahq nezha exploit attempt (CVE-2026-46716)
id: gg-pocmon-cve-2026-46716-9196971
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-46716. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-46716
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/setting'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.46716
title: nezhahq nezha exploit attempt (CVE-2026-46716)
id: gg-pocmon-cve-2026-46716-9356874
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-46716. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-46716
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.46716
title: nezhahq nezha exploit attempt (CVE-2026-46716)
id: gg-pocmon-cve-2026-46716-9369617
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-46716. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-46716
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/cron'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.46716
title: nezhahq nezha exploit attempt (CVE-2026-46716)
id: gg-pocmon-cve-2026-46716-9231130
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-46716. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-46716
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/user'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.46716
title: nezhahq nezha exploit attempt (CVE-2026-46716)
id: gg-pocmon-cve-2026-46716-9078703
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-46716. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-46716
logsource:
category: webserver
detection:
selection:
cs-method: DELETE
cs-uri-stem|contains|all:
- '/api/v1/cron/$cron_id'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.46716