CVE-2026-145092: Nezha before 2.6.2 Memory Exhaustion DoS via Unbounded JSON in AfterFind
Nezha before 2.6.2 contains an uncontrolled resource allocation vulnerability in the dashboard that persists unbounded ddnsprofiles and skipservers JSON values and re-parses them without size limits in GORM AfterFind hooks. Authenticated members with server or service write scopes can submit oversized arrays or maps via PATCH /server/:id, POST /service, or PATCH /service/:id, exhausting memory on every dashboard read and potentially crashing the process.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.6.2
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated Nezha member must have server or service write scopes. The affected API operations are PATCH /server/:id, POST /service, and PATCH /service/:id.
Is an unauthenticated attacker able to trigger the denial of service?
No. The reported attack path requires an authenticated member with the relevant write permissions.
Which deployments are affected?
Nezha versions before 2.6.2 are affected where members can use the specified server or service write API operations. The issue involves persisted ddns_profiles and skip_servers JSON values that are parsed during dashboard reads.
How does the denial of service persist after the malicious request?
Oversized JSON arrays or maps are stored in the affected fields and then re-parsed by GORM AfterFind hooks on dashboard reads. This can repeatedly exhaust memory and potentially crash the process.