8.2high
CrowdSec LAPI: Denial of Service via Unbounded Gzip Decompression
- Severity
- 8.2high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-273h-gvwr-c3qjGO-2026-5041
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| crowdsecurity crowdsec | >= 1.7.0, < 1.7.8 | CVE List |
| github.com/crowdsecurity/crowdsec (Go) | from 1.7.0 before 1.7.8 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 8.2high CVSS:4.0 | 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 |
| GitHub | medium CVSS:4.0 | 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/E:U |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
Impact
Exploiting this vulnerability will make LAPI unreachable, meaning that bouncers will not be able to fetch new decisions (but existing decisions will still be enforced) and log processors will not be able to send alerts, effectively denying the creation of new decisions.
Workarounds
If the LAPI is exposed on the network (either directly or through a reverse proxy), for example in the case of a multi-server deployment, restrict access to trusted IP addresses.
Go Vulnerability Database
CrowdSec LAPI: Denial of Service via Unbounded Gzip Decompression in github.com/crowdsecurity/crowdsec
NVD (es)
CrowdSec ofrece protección colaborativa contra IPs maliciosas. Desde la versión 1.7.0 hasta la 1.7.8, el router LAPI utilizaba gin-contrib/gzip con DefaultDecompressHandle globalmente en pkg/apiserver/controllers/controller.go, lo que provocaba que /v1/watchers y /v1/watchers/login descomprimieran cuerpos de solicitud JSON comprimidos con gzip no autenticados sin aplicar un tamaño máximo descomprimido y permitiendo una asignación excesiva de memoria heap que puede hacer que LAPI sea inaccesible. Este problema está solucionado en la versión 1.7.8.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44981 changed 2026-07-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-273h-gvwr-c3qj changed 2026-06-17 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5041 changed 2026-06-17 | CC-BY-4.0 |
| NVD | CVE-2026-44981 changed 2026-10-24 | Public domain |