CVE-2025-27154
CVE-2025-27154 · Spotipy's cache file, containing spotify auth token, is created with overly broad permissions
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
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.
CVSS 8.4 · Élevée · EPSS 0,6% · Correctif disponible
- Publication
- Mise à jour
Pile logicielle: system · python
Produits et versions concernés
spotipy
- Versions du logiciel
- < 2.25.1: Concernée
Aucun correctif publié
spotipy Debian:13
- Plages de versions concernées
- ECOSYSTEM: < 2.25.1-1
Mettez à jour vers 2.25.1-1
spotipy Debian:14
- Plages de versions concernées
- ECOSYSTEM: < 2.25.1-1
Mettez à jour vers 2.25.1-1
spotipy PyPI
- Versions du logiciel
- 0.1
- 0.2
- 2.0.1
- 2.0.2
- 2.1.0
- 2.10.0
- 2.11.0
- 2.11.1
- 2.11.2
- 2.12.0
- 2.13.0
- 2.14.0
- 2.15.0
- 2.16.0
- 2.16.1
- 2.17.0
- 2.17.1
- 2.18.0
- 2.19.0
- 2.19.0rc1
- 2.2.0
- 2.20.0
- 2.21.0
- 2.22.0
- 2.22.1
- 2.23.0
- 2.24.0
- 2.25.0
- 2.3.0
- 2.3.2
- 2.3.3
- 2.3.4
- 2.3.5
- 2.3.6
- 2.3.7
- 2.3.8
- 2.4.0
- 2.4.1
- 2.4.2
- 2.4.3
- 2.4.4
- 2.5.0
- 2.6.0
- 2.6.1
- 2.6.2
- 2.6.3
- 2.7.0
- 2.7.1
- 2.8.0
- 2.9.0
- Plages de versions concernées
- ECOSYSTEM: < 2.25.1
Mettez à jour vers 2.25.1
spotipy Ubuntu:25.10
- Versions du logiciel
- 2.25.1-1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
spotipy Ubuntu:26.10
- Versions du logiciel
- 2.25.2-1
- 2.26.0-1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
spotipy Ubuntu:26.04:LTS
- Versions du logiciel
- 2.25.1-1
- 2.25.2-1
- Plages de versions concernées
- ECOSYSTEM: (−∞, +∞)
Aucun correctif publié
Sources originales
- https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599
- https://github.com/spotipy-dev/spotipy/commit/1ca453f6ef87a2a9e9876f52b6cb38d13532ccf2
- https://github.com/spotipy-dev/spotipy/blob/master/spotipy/cache_handler.py#L93-L98
- https://github.com/spotipy-dev/spotipy/releases/tag/2.25.1
- https://nvd.nist.gov/vuln/detail/CVE-2025-27154