# CVE-2021-41179: Two-Factor Authentication not enforced for pages marked as public

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.20%, higher than 68% of CVEs (2026-12-01)
- Published: 2021-10-25T22:00:13.000Z
- Modified: 2026-06-17T04:08:02.123Z
- Weaknesses: CWE-304
- Assigned by: GitHub_M

## Description

Nextcloud is an open-source, self-hosted productivity platform. Prior to Nextcloud Server versions 20.0.13, 21.0.5, and 22.2.0, the Two-Factor Authentication wasn't enforced for pages marked as public. Any page marked as `@PublicPage` could thus be accessed with a valid user session that isn't authenticated. This particularly affects the Nextcloud Talk application, as this could be leveraged to gain access to any private chat channel without going through the Two-Factor flow. It is recommended that the Nextcloud Server be upgraded to 20.0.13, 21.0.5 or 22.2.0. There are no known workarounds aside from upgrading.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: < 20.0.13; >= 21.0.0, < 21.0.5; < 22.2.0
- nextcloud server: from 20.0.3 before 20.0.13; from 21.0.1 before 21.0.5; from 22.1.1 before 22.2.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-7hvh-rc6f-px23> (third-party-advisory)
- <https://github.com/nextcloud/server/pull/28725> (patch, third-party-advisory)
- <https://hackerone.com/reports/1322865> (permissions-required)

## Sources

- CVE List: [CVE-2021-41179](https://www.cve.org/CVERecord?id=CVE-2021-41179), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-41179](https://nvd.nist.gov/vuln/detail/CVE-2021-41179), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41179 · Whole record: https://cve.day/CVE-2021-41179.json · Rebuilt by cve.day 2026-11-25T22:58:05.192Z
