OAuth2 authorization codes are valid indefinetly in Nextcloud server
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-22403
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:34 UTC · Revision 1
Source evidence
OAuth2 authorization codes are valid indefinetly in Nextcloud server
core-osv · Original sourcePublished 18 Jan 2024, 20:03 UTC
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.
osv:CVE-2024-22403
Complete source record
{
"id": "0232cb27d8e5507414331e21c7cfac8f30bdc5f03f4ff766618dce3fee614224",
"url": "https://osv.dev/vulnerability/CVE-2024-22403",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "OAuth2 authorization codes are valid indefinetly in Nextcloud server",
"summary": "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.",
"evidence": "osv:CVE-2024-22403",
"products": [],
"severity": "low",
"structured": {
"id": "CVE-2024-22403",
"aliases": [
"CVE-2024-22403",
"GHSA-wppc-f5g8-vx36"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nextcloud/server",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "e15fcecaf0d382cebff924ec2b1f5319e130c0e8"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "28.0.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "28.0.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v28.0.0rc4",
"v28.0.0rc3",
"v28.0.0rc2",
"v28.0.0rc1",
"v28.0.0beta4",
"v28.0.0beta3",
"v28.0.0beta2",
"v28.0.0beta1",
"v27.0.0beta2",
"v27.0.0beta1",
"v26.0.0rc1",
"v26.0.0beta5",
"v26.0.0beta4",
"v26.0.0beta3",
"v26.0.0beta2",
"v26.0.0beta1",
"v25.0.0beta7",
"v25.0.0beta6",
"v25.0.0beta5",
"v25.0.0beta4",
"v25.0.0beta3",
"v25.0.0beta2",
"v25.0.0beta1",
"v24.0.0rc1",
"v24.0.0beta3",
"v24.0.0beta2",
"v24.0.0beta1",
"v23.0.0beta3",
"v23.0.0beta2",
"v23.0.0beta1",
"v22.0.0rc1",
"v22.0.0beta5",
"v22.0.0beta4",
"v22.0.0beta2",
"v22.0.0beta1",
"v21.0.0beta8",
"v21.0.0beta7",
"v21.0.0beta6",
"v21.0.0beta5",
"v21.0.0beta4",
"v21.0.0beta3",
"v21.0.0beta2",
"v21.0.0beta1",
"v20.0.0RC1",
"v20.0.0beta4",
"v20.0.0beta3",
"v20.0.0beta2",
"v20.0.0beta1",
"v19.0.0RC2",
"v19.0.0RC1",
"v19.0.0beta7",
"v19.0.0beta6",
"v19.0.0beta5",
"v19.0.0beta4",
"v19.0.0beta3",
"v19.0.0beta2",
"v19.0.0beta1",
"v18.0.0RC1",
"v18.0.0beta4",
"v18.0.0beta3",
"v18.0.0beta2",
"v18.0.0beta1",
"v17.0.0beta4",
"v17.0.0beta3",
"v17.0.0beta2",
"v17.0.0beta1",
"v16.0.0RC1",
"v16.0.0beta3",
"v16.0.0beta2",
"v16.0.0beta1",
"v16.0.0alpha1",
"v15.0.0RC1",
"v15.0.0beta2",
"v15.0.0beta1",
"v14.0.0RC2",
"v14.0.0RC1",
"v14.0.0beta4",
"v14.0.0beta3",
"v14.0.0beta2",
"v14.0.0beta1",
"v13.0.0RC1",
"v13.0.0beta4",
"v13.0.0beta3",
"v13.0.0beta2",
"v13.0.0beta1",
"v12.0.0beta4",
"v12.0.0beta3",
"v12.0.0beta2",
"v12.0.0beta1",
"v11.0.0",
"v11.0RC2",
"v9.1.0beta1",
"v9.0.0beta2",
"v9.0beta1",
"v8.2RC1",
"v8.2beta1",
"v8.1RC2",
"v8.1.0beta2",
"v8.1.0beta1",
"v8.1.0alpha2",
"v8.1.0alpha1",
"v8.0.0",
"v8.0.0RC2",
"v8.0.0RC1",
"v8.0.0beta2",
"v8.0.0beta1",
"v8.0.0alpha2",
"v8.0.0alpha1",
"v7.0.0beta1",
"v7.0.0alpha2",
"v6.0.0RC2",
"v6.0.0RC1",
"v6.0.0beta5",
"v6.0.0beta4",
"v6.0.0beta3",
"v6.0.0beta2",
"v6.0.0alpha2",
"v5.0.0",
"v5.0.0RC3",
"v5.0.0RC2",
"v5.0.0RC1",
"v5.0.0beta2",
"v5.0.0beta1",
"v5.0.0alpha1",
"v4.5.0",
"v4.5.0RC3",
"v4.5.0RC2",
"v4.5.0RC1",
"v4.5.0beta4",
"v4.5.0beta3",
"v4.0.6",
"v4.0.5",
"v4.0.4",
"v4.0.1",
"v4.0.0",
"v4.0.0RC2",
"v4.0.0RC",
"v4.0.0beta",
"v3.0",
"v1.0.0beta1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-22403.json"
}
}
],
"modified": "2026-10-28T02:30:22.552087268Z",
"provider": "osv",
"references": [
"https://hackerone.com/reports/1784162",
"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S6PN4GVJ5TZUC6WSG4X3ZA3AMPBEKNAX/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22403.json",
"https://github.com/nextcloud/security-advisories/security/advisories/GHSA-wppc-f5g8-vx36",
"https://nvd.nist.gov/vuln/detail/CVE-2024-22403",
"https://github.com/nextcloud/server/pull/40766"
],
"provider_metadata": {
"cwe_ids": [
"CWE-613"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22403.json"
}
},
"related_cves": [
{
"value": "CVE-2024-22403",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 488603,
"published_at": "2024-01-18T20:03:30.623+00:00"
}