Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/crowdsecurity/crowdsec
  4. ›
  5. CVE-2026-44981

CVE-2026-44981: CrowdSec LAPI: Denial of Service via Unbounded Gzip Decompression

May 27, 2026

The LAPI router uses gin-contrib/gzip with DefaultDecompressHandle globally (pkg/apiserver/controllers/controller.go). This middleware decompresses incoming request bodies without enforcing a maximum decompressed size.

The endpoints /v1/watchers or /v1/watchers/login require no authentication. An attacker can send small gzip-compressed JSON payloads that, when decompressed, result in hundreds of MB of valid JSON occupying server memory. Sending enough requests concurrently will cause LAPI to allocate excessive heap memory, leading the OS to forcibly terminate the process.

This vulnerability is not exploitable from the network in default configurations, as LAPI only listens on the loopback interface. If developers’ applications are using a multi-server setup, LAPI will be exposed in the network, in which case they are at risk if untrusted IPs can access it.

References

  • github.com/advisories/GHSA-273h-gvwr-c3qj
  • github.com/crowdsecurity/crowdsec/security/advisories/GHSA-273h-gvwr-c3qj
  • nvd.nist.gov/vuln/detail/CVE-2026-44981

Code Behaviors & Features

Detect and mitigate CVE-2026-44981 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.7.0 before 1.7.8

Fixed versions

  • 1.7.8

Solution

Upgrade to version 1.7.8 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)

Source file

go/github.com/crowdsecurity/crowdsec/CVE-2026-44981.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 28 May 2026 12:19:49 +0000.