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

- Severity: Low 3.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/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): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2024-01-18T20:03:30.623Z
- Modified: 2026-06-17T07:11:20.537Z
- Weaknesses: CWE-613
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: < 28.0.0
- nextcloud nextcloud_server: before 28.0.0

## Every score

- GitHub_M: CVSS:3.1 3.0 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-wppc-f5g8-vx36> (vendor-advisory)
- <https://github.com/nextcloud/server/pull/40766> (patch, vendor-advisory)
- <https://hackerone.com/reports/1784162> (permissions-required, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S6PN4GVJ5TZUC6WSG4X3ZA3AMPBEKNAX/>

## Sources

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

---

Page: https://cve.day/CVE-2024-22403 · Whole record: https://cve.day/CVE-2024-22403.json · Rebuilt by cve.day 2026-11-25T22:58:36.216Z
