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

Source: https://aplosec.si/cve/CVE-2026-120046/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-120046

Medium 6.0 · Reported · Fixed in 2.4.0 · CWE-476 · Go

# Nezha 2.0.0 before 2.4.0 Startup NULL Pointer Dereference via Orphaned Service History

CVE-2026-120046 · published 2026-10-30

In plain words: this type of bug lets someone slow down or crash the service with crafted input (denial of service). A fixed release is listed.

## Summary

CVE-2026-120046 affects nezha (Go) >= 2.0.0, < 2.4.0: Startup NULL pointer dereference via orphaned service history (CWE-476). Fixed in 2.4.0. CVSS 4.0 base score 6.0 (Medium), assigned by VulnCheck. Published 2026-10-30 by VulnCheck. Credit: Zachariah Mithani.

Nezha 2.0.0 before 2.4.0 contains a NULL pointer dereference in ServiceSentinel.loadTodayStats. An authenticated user who deletes their own service via POST /api/v1/batch-delete/service leaves orphaned service_histories rows that crash the non-TSDB dashboard on its next startup until removed manually.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade nezha to 2.4.0 or later. Releases in the affected range (>= 2.0.0, < 2.4.0) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-10-30 CVE published

- 2026-11-05 Public record last updated

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/nezha-2.0.0-before-2.4.0-startup-null-pointer-dereference-via-orphaned-service-history](https://www.vulncheck.com/advisories/nezha-2.0.0-before-2.4.0-startup-null-pointer-dereference-via-orphaned-service-history)

- [Releasehttps://github.com/nezhahq/nezha/releases/tag/v2.4.0](https://github.com/nezhahq/nezha/releases/tag/v2.4.0)

- [Fix commithttps://github.com/nezhahq/nezha/commit/efd3e07b901d6acf7ef2ab3b26458cc07e7605dc](https://github.com/nezhahq/nezha/commit/efd3e07b901d6acf7ef2ab3b26458cc07e7605dc)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-120046](https://www.cve.org/CVERecord?id=CVE-2026-120046)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-120046](https://nvd.nist.gov/vuln/detail/CVE-2026-120046)

**Severity:** Medium 6.0 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-120046)

**Package:** nezha

**Ecosystem:** Go

**Affected:** >= 2.0.0, < 2.4.0

**Fixed:** 2.4.0

**Weakness:** CWE-476

**CNA:** VulnCheck

**Credit:** Zachariah Mithani finder
