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

Medium 6.5 Published Updated

Attackers can brute force federated share access tokens due to missing rate limiting, potentially gaining unauthorized access to shared data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-31118?

CVE-2022-31118 is a medium-severity missing authorization vulnerability in Nextcloud Nextcloud Server, published on 4 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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`.

Weakness: CWE-307, CWE-770

Which versions are affected by CVE-2022-31118?

It affects 1 product.

Products include Nextcloud Nextcloud Server.

How do I fix CVE-2022-31118?

No fix has been published for CVE-2022-31118 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2022-31118 being exploited?

There is no known exploitation of CVE-2022-31118 in the wild and no public exploit code.

All Nextcloud Nextcloud Server vulnerabilities

Sources

Also known as GHSA-2vwh-5v93-3vcq.

Is CVE-2022-31118 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free