Skip to content
Heist/ feed
Back to feed
Medium

OAuth2 client_secret stored in plain text in the Nextcloud database

Type: advisorySources: OSV

Nextcloud server is an open source home cloud platform. Affected versions of Nextcloud stored OAuth2 tokens in plaintext which allows an attacker who has gained access to the server to potentially elevate their privilege. This issue has been addressed and users are recommended to upgrade their Nextcloud Server to version 25.0.8, 26.0.3 or 27.0.1. There are no known workarounds for this vulnerability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-45151
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 09:08 UTC · Revision 1

Source evidence

OAuth2 client_secret stored in plain text in the Nextcloud database

core-osv · Original source

Published 16 Oct 2023, 18:41 UTC

Nextcloud server is an open source home cloud platform. Affected versions of Nextcloud stored OAuth2 tokens in plaintext which allows an attacker who has gained access to the server to potentially elevate their privilege. This issue has been addressed and users are recommended to upgrade their Nextcloud Server to version 25.0.8, 26.0.3 or 27.0.1. There are no known workarounds for this vulnerability.

osv:CVE-2023-45151
Complete source record
{
  "id": "87be1d691599d11ade490005f9140f5927f21b44162ce3bb8f6cba0200300ff1",
  "url": "https://osv.dev/vulnerability/CVE-2023-45151",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "OAuth2 client_secret stored in plain text in the Nextcloud database",
    "summary": "Nextcloud server is an open source home cloud platform. Affected versions of Nextcloud stored OAuth2 tokens in plaintext which allows an attacker who has gained access to the server to potentially elevate their privilege. This issue has been addressed and users are recommended to upgrade their Nextcloud Server to version 25.0.8, 26.0.3 or 27.0.1. There are no known workarounds for this vulnerability.",
    "evidence": "osv:CVE-2023-45151",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-45151",
      "aliases": [
        "CVE-2023-45151",
        "GHSA-hhgv-jcg9-p4m9"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/nextcloud/server",
              "type": "GIT",
              "events": [
                {
                  "introduced": "20ea9a25353129b56d46951fe7d23939665ab2b2"
                },
                {
                  "fixed": "82f744bb016b059a55d1c6c476a665029e55cedc"
                },
                {
                  "introduced": "62cfd3b4c9ff4d8cdbbe6dcc8b63a1085bb94e3d"
                },
                {
                  "fixed": "5348e530ea6c61e443cf4f5cab7f4ed97ddd14d3"
                },
                {
                  "introduced": "add4e4365a4040d2e4e6aa79c0d03c3edd78583c"
                },
                {
                  "last_affected": "add4e4365a4040d2e4e6aa79c0d03c3edd78583c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:*",
                    "range": [
                      {
                        "introduced": "25.0.0"
                      },
                      {
                        "fixed": "25.0.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "25.0.0"
                      },
                      {
                        "fixed": "25.0.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:*",
                    "range": [
                      {
                        "introduced": "26.0.0"
                      },
                      {
                        "fixed": "26.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "26.0.0"
                      },
                      {
                        "fixed": "26.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:nextcloud:nextcloud_server:27.0.0:*:*:*:-:*:*:*",
                    "range": [
                      {
                        "introduced": "27.0.0"
                      },
                      {
                        "last_affected": "27.0.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:nextcloud:nextcloud_server:27.0.0:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "27.0.0"
                      },
                      {
                        "last_affected": "27.0.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "27.0.0",
            "v25.0.8rc2",
            "v26.0.3rc2",
            "v25.0.8rc1",
            "v26.0.3rc1",
            "v27.0.0",
            "v25.0.7",
            "v26.0.2",
            "v25.0.7rc1",
            "v26.0.2rc1",
            "v25.0.6",
            "v26.0.1",
            "v25.0.6rc1",
            "v26.0.1rc1",
            "v25.0.5",
            "v26.0.0",
            "v25.0.5rc1",
            "v25.0.4",
            "v25.0.4rc1",
            "v25.0.3",
            "v25.0.3rc2",
            "v25.0.3rc1",
            "v25.0.2",
            "v25.0.2rc3",
            "v25.0.2rc2",
            "v25.0.2rc1",
            "v25.0.1",
            "v25.0.1rc1",
            "v25.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-45151.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:34.270097165Z",
      "provider": "osv",
      "references": [
        "https://hackerone.com/reports/1994324",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/45xxx/CVE-2023-45151.json",
        "https://github.com/nextcloud/security-advisories/security/advisories/GHSA-hhgv-jcg9-p4m9",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-45151",
        "https://github.com/nextcloud/server/pull/38398"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-312"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/45xxx/CVE-2023-45151.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-45151",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 501330,
  "published_at": "2023-10-16T18:41:28.713+00:00"
}