CVE-2023-23608 spotipy Path traversal vulnerability that may lead to type confusion in URI handling code
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
Spotipy is a light weight Python library for the Spotify Web API. In versions prior to 2.22.1, if a malicious URI is passed to the library, the library can be tricked into performing an operation on a different API endpoint than intended. The code Spotipy uses to parse URIs and URLs allows an attacker to insert arbitrary characters into the path that is used for API requests. Because it is possible to include "..", an attacker can redirect for example a track lookup via spotifyApi.track() to an arbitrary API endpoint like playlists, but this is possible for other endpoints as well. The impact of this vulnerability depends heavily on what operations a client application performs when it handles a URI from a user and how it uses the responses it receives from the API. This issue is patched in version 2.22.1.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi spotipy(PyPI) | < 2.22.1; = 0.1; = 0.2; = 2.0.1 +43 more | 2.22.1 | Fixed |
| spotipy project spotipy | < 2.22.1 | 2.22.1 | Fixed |
| spotipy-dev spotipy | = < 2.22.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi spotipy(PyPI) | < 2.22.1 | 2.22.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 24 more
| Product | Affected versions | Fixed in |
|---|---|---|
| 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 |
| spotipy-dev spotipy | = < 2.22.1 | No fix listed |
| spotipy project spotipy | < 2.22.1 | 2.22.1 |
References
- https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-q764-g6fm-555v exploit patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com vendor-advisory
- github.com product
- pypi.org product