CVE-2026-44981

CrowdSec LAPI: Denial of Service via Unbounded Gzip Decompression

Published Jul 16, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
CrowdSec offers crowdsourced protection against malicious IPs. From 1.7.0 until 1.7.8, the LAPI router used gin-contrib/gzip with DefaultDecompressHandle globally in pkg/apiserver/controllers/controller.go, causing /v1/watchers and /v1/watchers/login to decompress unauthenticated gzip-compressed JSON request bodies without enforcing a maximum decompressed size and allowing excessive heap allocation that can make LAPI unreachable. This issue is fixed in version 1.7.8.

Analysis

AI-generated

Technical impact

This vulnerability allows an attacker to send a gzip‑compressed JSON request that decompresses without a size limit to the CrowdSec LAPI endpoints /v1/watchers and /v1/watchers/login. Because the gin‑contrib/gzip DefaultDecompressHandle is applied globally, an unauthenticated request can trigger the server to allocate an unbounded amount of heap memory during decompression, leading to resource exhaustion that makes the API unreachable and results in a denial of service. The flaw is classified as CWE‑409 and can affect the availability of all services monitored by CrowdSec.

Affected Systems

CrowdSec LAPI in CrowdSec 1.7.0 through 1.7.7 is affected. Version 1.7.8 and later include the fix, removing the unbounded decompression. The issue is present in all deployments of these versions regardless of the external configuration of the LAPI router.

Risk and Exploitability

The CVSS score of 8.2 indicates high severity, but the EPSS score of less than 1% suggests that exploitation is unlikely at present. The vulnerability is not listed in CISA KEV. Based on the description, the likely attack vector is HTTP, with no authentication required, making it straightforward for an attacker to trigger the resource exhaustion by sending a carefully crafted gzip payload to the affected endpoints.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to CrowdSec 1.7.8 or later to receive the fix
  • If an upgrade cannot be performed immediately, block or rate‑limit gzip requests to the /v1/watchers and /v1/watchers/login endpoints, or temporarily disable gzip handling on the LAPI router
  • Monitor memory usage and set alerts for abnormal heap consumption to detect exploitation attempts

Generated by OpenCVE AI on July 31, 2026 at 01:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-273h-gvwr-c3qj CrowdSec LAPI: Denial of Service via Unbounded Gzip Decompression
History
Type Values Removed Values Added
First Time appeared Crowdsecurity
Crowdsecurity crowdsec
Vendors & Products Crowdsecurity
Crowdsecurity crowdsec
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description CrowdSec offers crowdsourced protection against malicious IPs. From 1.7.0 until 1.7.8, the LAPI router used gin-contrib/gzip with DefaultDecompressHandle globally in pkg/apiserver/controllers/controller.go, causing /v1/watchers and /v1/watchers/login to decompress unauthenticated gzip-compressed JSON request bodies without enforcing a maximum decompressed size and allowing excessive heap allocation that can make LAPI unreachable. This issue is fixed in version 1.7.8.
Title CrowdSec LAPI: Denial of Service via Unbounded Gzip Decompression
Weaknesses CWE-409
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-409

    Improper Handling of Highly Compressed Data (Data Amplification)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 17, 2026, 1:50 PM
Reserved
May 8, 2026, 4:23 PM
Status
Deferred
Published
Jul 16, 2026, 8:16 PM
Modified
Oct 24, 2026, 8:10 PM