Uncontrolled Memory Allocation in Loki - CVE-2026-21729

 

Uncontrolled Memory Allocation in Loki - CVE-2026-21729

Published: July 16, 2026 / Updated: July 24, 2026


Vulnerability identifier: #VU139270
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-21729
CWE-ID: CWE-789
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to uncontrolled memory allocation in the detected_fields endpoint when processing a user-supplied limit query parameter. A remote attacker can send a specially crafted request with a massive limit value to cause a denial of service.

The issue can trigger out-of-memory conditions even when there are no matching results.


Affected software

Loki

How to mitigate CVE-2026-21729

Install security update from vendor's website.

Loki - update to 3.7.0

External References

Related Security Bulletins