CVE-2023-29159 json
Starlette has Path Traversal vulnerability in StaticFiles
published 3y ago modified 4mo ago also EUVD-2023-0245 , GHSA-v5gw-mw7f-84px , PYSEC-2023-83
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
Directory traversal vulnerability in Starlette versions 0.13.5 and later and prior to 0.27.0 allows a remote unauthenticated attacker to view files in a web service which was built using Starlette.
Patch / fix
- pypi starlette 0.27.0
- encode starlette 0.27.0
- starlette Debian 12 0.26.1-1+deb12u1
- starlette Debian 14, Debian 13 0.28.0-1
debian advisories DEBIAN-CVE-2023-29159
Is CVE-2023-29159 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-29159 updated cvss 3.7
Starlette: Directory traversal vulnerability
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
2.59% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-15).
Exploits and checks
- github.com https://github.com/encode/starlette/security/advisories/GHSA-v5gw-mw7f-84px referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | starlette | >=0.13.5, <0.27.0 |
0.27.0 |
Affected products
- Encode Starlette
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/encode/starlette/commit/1797de464124b090f10cf570441e8292936d63e3
web
-
github.com
/encode/starlette/security/advisories/GHSA-v5gw-mw7f-84px
web, exploit, vendor-advisory, advisory
-
github.com
/encode/starlette/releases/tag/0.27.0
web, release-notes
-
jvn.jp
/en/jp/JVN95981715/
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2023-29159
advisory
-
github.com
/encode/starlette
package
-
github.com
/encode/starlette/blob/4bab981d9e870f6cee1bd4cd59b87ddaf355b2dc/starlette/staticfiles.py#L172-L174
web
-
github.com
/pypa/advisory-database/tree/main/vulns/starlette/PYSEC-2023-83.yaml
web
-
jvn.jp
/en/jp/JVN95981715
web
-
github.com
/Kludex/starlette/security/advisories/GHSA-v5gw-mw7f-84px
advisory
Sources
- CVE List CVE-2023-29159
- GitHub Advisory GHSA-v5gw-mw7f-84px
- NVD CVE-2023-29159
- OSV PYSEC-2023-83
- Maintainer advisory GHSA-v5gw-mw7f-84px
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of Kludex/starlette published their own advisory on GitHub. Reviewed sources take precedence over it.