{"schemaVersion":3,"id":"CVE-2023-29159","aliases":["GHSA-v5gw-mw7f-84px","PYSEC-2023-83","UBUNTU-CVE-2023-29159","DEBIAN-CVE-2023-29159"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2023-06-01T00:00:00.000Z","modified":"2025-01-09T19:18:29.375Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":5.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02049,"percentile":0.80935,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02049},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02049,"percentile":0.80935}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02049,"percentile":0.80935}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_ENCODE_STARLETTE","name":"Starlette","source":"github","url":"https://github.com/encode/starlette/security/advisories/GHSA-v5gw-mw7f-84px","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"debian","product":"starlette","name":"starlette","label":"starlette","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/starlette","purlType":"deb","versions":[{"text":"< 0.26.1-1+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.28.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26.1-1+deb12u1 | < 0.28.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"starlette","name":"starlette","label":"starlette","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/starlette","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"encode","product":"starlette","name":"starlette","label":"starlette","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"versions 0.13.5 and later and prior to 0.27.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.13.5, < 0.27.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"versions 0.13.5 and later and prior to 0.27.0 | ≥ 0.13.5, < 0.27.0","eol":null,"hubHref":"/vendor/encode/starlette"},{"vendor":"PyPI","product":"starlette","name":"starlette","label":"starlette","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/starlette","purlType":"pypi","versions":[{"text":"≥ 0.13.5, < 0.27.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.13.5, < 0.27.0","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/encode/starlette/security/advisories/GHSA-v5gw-mw7f-84px","label":"github.com/encode/starlette/security/advisories/GHSA-v5gw-mw7f-84px","hostname":"github.com","tags":["WEB","Advisory","REPORT","Exploit","Vendor Advisory"]},{"url":"https://github.com/encode/starlette/releases/tag/0.27.0","label":"github.com/encode/starlette/releases/tag/0.27.0","hostname":"github.com","tags":["WEB","REPORT","Release Notes"]},{"url":"https://jvn.jp/en/jp/JVN95981715/","label":"jvn.jp/en/jp/JVN95981715/","hostname":"jvn.jp","tags":["WEB","REPORT","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29159","label":"nvd.nist.gov/vuln/detail/CVE-2023-29159","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/encode/starlette/commit/1797de464124b090f10cf570441e8292936d63e3","label":"github.com/encode/starlette/commit/1797de464124b090f10cf570441e8292936d63e3","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/encode/starlette","label":"github.com/encode/starlette","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/encode/starlette/blob/4bab981d9e870f6cee1bd4cd59b87ddaf355b2dc/starlette/staticfiles.py#L172-L174","label":"github.com/encode/starlette/blob/4bab981d9e870f6cee1bd4cd59b87ddaf355b2dc/starlette/staticfiles.py","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/starlette/PYSEC-2023-83.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/starlette/PYSEC-2023-83.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://jvn.jp/en/jp/JVN95981715","label":"jvn.jp/en/jp/JVN95981715","hostname":"jvn.jp","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2023-29159","label":"ubuntu.com/security/CVE-2023-29159","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-29159","label":"www.cve.org/CVERecord?id=CVE-2023-29159","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-29159","label":"security-tracker.debian.org/tracker/CVE-2023-29159","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-06-01T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-01-09T19:18:29.375Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T06:48:18.315Z","stale":false,"partial":false}}