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.
Published: 2026-07-16
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 23 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Crowdsecurity
Crowdsecurity crowdsec
Vendors & Products Crowdsecurity
Crowdsecurity crowdsec

Fri, 17 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 16 Jul 2026 20:15:00 +0000

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'}


Subscriptions

Crowdsecurity Crowdsec
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-17T13:50:30.497Z

Reserved: 2026-05-08T16:23:33.264Z

Link: CVE-2026-44981

cve-icon Vulnrichment

Updated: 2026-07-17T13:50:22.816Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T01:30:05Z

Weaknesses
  • CWE-409

    Improper Handling of Highly Compressed Data (Data Amplification)