CVE-2025-27154
CVE-2025-27154 · Spotipy's cache file, containing spotify auth token, is created with overly broad permissions
Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.
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 · Alta · EPSS 0,6% · Corrección disponible
- Publicación
- Actualización
Pila tecnológica: system · python
Productos y versiones afectados
spotipy
- Versiones
- < 2.25.1: Afectada
Sin corrección publicada
spotipy Debian:13
- Intervalos de versiones afectados
- ECOSYSTEM: < 2.25.1-1
Actualiza a 2.25.1-1
spotipy Debian:14
- Intervalos de versiones afectados
- ECOSYSTEM: < 2.25.1-1
Actualiza a 2.25.1-1
spotipy PyPI
- Versiones
- 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
- Intervalos de versiones afectados
- ECOSYSTEM: < 2.25.1
Actualiza a 2.25.1
spotipy Ubuntu:25.10
- Versiones
- 2.25.1-1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
spotipy Ubuntu:26.10
- Versiones
- 2.25.2-1
- 2.26.0-1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
spotipy Ubuntu:26.04:LTS
- Versiones
- 2.25.1-1
- 2.25.2-1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
Fuentes 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