# CVE-2026-120046: Nezha dashboard NULL pointer dereference in loadTodayStats

Source: https://junglewise.ai/threats/cve-2026-120046-nezha-2-0-0-before-2-4-0-contains-a-null-pointer-dereference  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-30. Updated: 2026-10-30  
License: CC BY 4.0 with a link back

CVE-2026-120046 · Severity: medium · CVSS 5.3 · Published 2026-10-30

Nezha is a self-hosted server and website monitoring tool. An authenticated user can crash the monitoring dashboard by deleting a service through the API, which leaves orphaned database records that cause a crash when the dashboard restarts. This can disrupt monitoring operations until manual cleanup is performed.

Technologies: [Nezha](https://junglewise.ai/threats/technologies/nezha-nezha). Vendors: [Nezha](https://junglewise.ai/threats/vendors/nezha).

## Quick answers

**Is CVE-2026-120046 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-120046 being exploited in the wild.

**How severe is CVE-2026-120046?** Medium severity, with a CVSS score of 5.3, published 30 October 2026.

**Which products and versions are affected?** Nezha 2.0.0 before 2.4.0.

**Is there a fix for CVE-2026-120046?** Yes: fixed in 2.4.0. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-120046 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-120046?** Check whether you run Nezha at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 2.4.0

## Technical details

A NULL pointer dereference vulnerability exists in the ServiceSentinel.loadTodayStats function. An authenticated user can delete their own service via POST /api/v1/batch-delete/service, leaving orphaned service_history rows in the database. When the non-TSDB dashboard restarts and calls loadTodayStats, it dereferences a NULL pointer while processing these orphaned records, causing a crash. This requires prior authentication but no special privileges beyond ability to delete one's own service.

## Affected products

- Nezha Nezha 2.0.0 before 2.4.0

## Timeline

- 2026-10-30: disclosed

## References

- [https://github.com/nezhahq/nezha](https://github.com/nezhahq/nezha)
- [https://github.com/nezhahq/nezha/blob/9881c47f0cc92256ba203919da5a25fab79a6bad/cmd/dashboard/controller/service.go](https://github.com/nezhahq/nezha/blob/9881c47f0cc92256ba203919da5a25fab79a6bad/cmd/dashboard/controller/service.go)

## Related threats

- [Nezha information disclosure in server configuration APIs](https://junglewise.ai/threats/cve-2026-111386-nezha-from-1-7-0-before-2-3-15-contains-an-information)
- [Nezha host header injection in file transfer URLs](https://junglewise.ai/threats/cve-2026-111385-nezha-from-2-1-0-before-2-3-15-contains-a-host-header-injection)
- [Nezha resource exhaustion in WebSocket endpoint](https://junglewise.ai/threats/cve-2026-111383-nezha-from-2-0-13-before-2-3-15-contains-a-resource-exhaustion)
- [Nezha lock-order inversion in notification groups](https://junglewise.ai/threats/cve-2026-105112-nezha-from-1-8-0-before-2-3-13-contains-a-lock-order-inversion)
- [Nezha Host header injection in OAuth2 redirect endpoint](https://junglewise.ai/threats/cve-2026-101090-nezha-2-2-3-contains-a-host-header-injection-regression-in-the)
