Skip to content

Rate limiter not working reliable when Memcached is installed

Moderate
nickvergessen published GHSA-xmhp-7vr4-hp63 Oct 16, 2023

Package

Server (Nextcloud)

Affected versions

>= 25.0.0, >= 26.0.0, >= 27.0.0

Patched versions

25.0.11, 26.0.6, 27.1.0
Server (Nextcloud Enterprise)
>= 22.0.0, >= 23.0.0, >= 24.0.0, >= 25.0.0, >= 26.0.0, >= 27.0.0
22.2.10.16, 23.0.12.11, 24.0.12.7, 25.0.11, 26.0.6, 27.1.0

Description

Impact

When Memcached is used as memcache.distributed the rate limiting in Nextcloud Server could be reset unexpectingly resetting the rate count earlier than intended

Patches

It is recommended that the Nextcloud Server is upgraded to 25.0.11, 26.0.6 or 27.1.0
It is recommended that the Nextcloud Enterprise Server is upgraded to 22.2.10.16, 23.0.12.11, 24.0.12.7, 25.0.11, 26.0.6 or 27.1.0

Workarounds

  • Change config setting memcache.distributed to \OC\Memcache\Redis and install Redis instead of Memcached

References

For more information

If you have any questions or comments about this advisory:

Severity

Moderate
4.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

CVE ID

CVE-2023-45148

Weaknesses

Credits