CVE-2025-27154: Spotipy - Permissions Misconfiguration
- Cve: CVE-2025-27154
- Name: Spotipy - Permissions Misconfiguration
- Description: Spotipy is a lightweight Python library for the Spotify Web API. The `CacheHandler` class creates a cache file to store the auth token. Prior to version 2.25.1, the file created has `rw-r--r--` (644) permissions by default, when it could be locked down to `rw-------` (600) permissions. This leads to overly broad exposure of the spotify auth token. If this token can be read by an attacker (another user on the machine, or a process running as another user), it can be used to perform administrative actions on the Spotify account, depending on the scope granted to the token. Version 2.25.1 tightens the cache file permissions.
- Impact: Attackers with access to the same machine can read Spotify auth tokens, potentially leading to unauthorized account access and actions.
- Remediation: Update to version 2.25.1 or later, which tightens cache file permissions.
- Vulnerability type: misconfiguration
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00611
- Epss percentile: 0.50196
- Assignee: [email protected]
- Published at: 2025-02-27T14:15:36Z
- Age in days: 635
- Modified at: 2026-06-17T09:03:06Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-27154
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-276 | Incorrect Default Permissions |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599 | nvd | 2025-02-27 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| spotipy_project:spotipy | < 2.25.1 | no | nvd | /v1/products/spotipy_project/spotipy |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| spotipy-dev/spotipy | commit, fix, package, releases, security_advisory | yes | /v1/repositories/spotipy-dev/spotipy |
Index
- Repositories: 6
- Repositories high signal: 4
- Checked, none or zero: packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-02-27
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts