CVE-2025-27154 Spotipy's cache file, containing spotify auth token, is created with overly broad permissions
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 4 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/spotipy(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/spotipy(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/spotipy(Debian 13) | < 2.25.1-1 | 2.25.1-1 | Fixed |
| debian/spotipy(Debian 14) | < 2.25.1-1 | 2.25.1-1 | Fixed |
| pypi spotipy(PyPI) | < 2.25.1; = 0.1; = 0.2; = 2.0.1 +47 more | 2.25.1 | Fixed |
| spotipy project spotipy | < 2.25.1 | 2.25.1 | Fixed |
| spotipy-dev spotipy | = < 2.25.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi spotipy(PyPI) | < 2.25.1 | 2.25.1 |
| pypi spotipy(PyPI) | = 0.1 | No fix listed |
| pypi spotipy(PyPI) | = 0.2 | No fix listed |
| pypi spotipy(PyPI) | = 2.0.1 | No fix listed |
| pypi spotipy(PyPI) | = 2.0.2 | No fix listed |
| pypi spotipy(PyPI) | = 2.1.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.10.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.11.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.11.1 | No fix listed |
| pypi spotipy(PyPI) | = 2.11.2 | No fix listed |
| pypi spotipy(PyPI) | = 2.12.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.13.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.14.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.15.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.16.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.16.1 | No fix listed |
| pypi spotipy(PyPI) | = 2.17.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.17.1 | No fix listed |
| pypi spotipy(PyPI) | = 2.18.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.19.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.19.0rc1 | No fix listed |
| pypi spotipy(PyPI) | = 2.2.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.20.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.21.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.22.0 | No fix listed |
Show 32 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi spotipy(PyPI) | = 2.22.1 | No fix listed |
| pypi spotipy(PyPI) | = 2.23.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.24.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.25.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.3.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.3.2 | No fix listed |
| pypi spotipy(PyPI) | = 2.3.3 | No fix listed |
| pypi spotipy(PyPI) | = 2.3.4 | No fix listed |
| pypi spotipy(PyPI) | = 2.3.5 | No fix listed |
| pypi spotipy(PyPI) | = 2.3.6 | No fix listed |
| pypi spotipy(PyPI) | = 2.3.7 | No fix listed |
| pypi spotipy(PyPI) | = 2.3.8 | No fix listed |
| pypi spotipy(PyPI) | = 2.4.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.4.1 | No fix listed |
| pypi spotipy(PyPI) | = 2.4.2 | No fix listed |
| pypi spotipy(PyPI) | = 2.4.3 | No fix listed |
| pypi spotipy(PyPI) | = 2.4.4 | No fix listed |
| pypi spotipy(PyPI) | = 2.5.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.6.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.6.1 | No fix listed |
| pypi spotipy(PyPI) | = 2.6.2 | No fix listed |
| pypi spotipy(PyPI) | = 2.6.3 | No fix listed |
| pypi spotipy(PyPI) | = 2.7.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.7.1 | No fix listed |
| pypi spotipy(PyPI) | = 2.8.0 | No fix listed |
| pypi spotipy(PyPI) | = 2.9.0 | No fix listed |
| debian/spotipy(Debian:13) | < 2.25.1-1 | 2.25.1-1 |
| debian/spotipy(Debian:14) | < 2.25.1-1 | 2.25.1-1 |
| spotipy-dev spotipy | = < 2.25.1 | No fix listed |
| ubuntu/spotipy(Ubuntu:26.04) | All versions | No fix listed |
| spotipy project spotipy | < 2.25.1 | 2.25.1 |
| ubuntu/spotipy(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/spotipy-dev/spotipy/commit/1ca453f6ef87a2a9e9876f52b6cb38d13532ccf2 patch
- github.com product
- https://github.com/spotipy-dev/spotipy/blob/master/spotipy/cache_handler.py#L93-L98 product
- https://github.com/spotipy-dev/spotipy/releases/tag/2.25.1 release-notes
- pypi.org product
- github.com vendor-advisory
- Debian Security Tracker CVE-2025-27154 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking