# CVE-2024-22403: OAuth2 authorization codes are valid indefinetly in Nextcloud server

- Priority: **Routine**
- Reason: Not severe (CVSS 3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-01-18 · Modified: 2025-06-17
- Record: https://cvemate.com/vulnerability/CVE-2024-22403 · JSON: https://cvemate.com/vulnerability/CVE-2024-22403/json

## Description

```text
Nextcloud server is a self hosted personal cloud system. In affected versions OAuth codes did not expire. When an attacker would get access to an authorization code they could authenticate at any time using the code. As of version 28.0.0 OAuth codes are invalidated after 10 minutes and will no longer be authenticated. To exploit this vulnerability an attacker would need to intercept an OAuth code from a user session. It is recommended that the Nextcloud Server is upgraded to 28.0.0. There are no known workarounds for this vulnerability.
```

## Signals

- CVSS: 3.7 low (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.452%, percentile 40.976%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- nextcloud nextcloud\_server: \< 28.0.0
- nextcloud security-advisories: \< 28.0.0

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-wppc-f5g8-vx36>
- <https://github.com/nextcloud/server/pull/40766>
- <https://hackerone.com/reports/1784162>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S6PN4GVJ5TZUC6WSG4X3ZA3AMPBEKNAX/>

---

Data as of 2026-12-05T07:44:53.963Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
