{"schemaVersion":3,"id":"CVE-2009-2659","aliases":["GHSA-9xg7-gg9m-rmq9","PYSEC-2009-3","DEBIAN-CVE-2009-2659"],"status":"published","duplicateOf":null,"title":null,"description":"The Admin media handler in core/servers/basehttp.py in Django 1.0 and 0.96 does not properly map URL requests to expected \"static media files,\" which allows remote attackers to conduct directory traversal attacks and read arbitrary files via a crafted URL.","dates":{"published":"2009-08-04T16:13:00.000Z","modified":"2024-08-07T05:59:56.995Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/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":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}]},"epss":{"probability":0.02284,"percentile":0.83021,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.02284},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.02284,"percentile":0.83021}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02284,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.02284,"percentile":0.83021}]},"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":[],"exploitCount":0,"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":"python-django","name":"python-django","label":"python-django","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-django","purlType":"deb","versions":[{"text":"< 1.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.1-1","eol":null,"hubHref":null},{"vendor":"django_project","product":"django","name":"django","label":"django","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.96","noFixRecorded":false,"fixedIn":null},{"text":"1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"0.96 | 1.0","eol":null,"hubHref":"/vendor/django_project/django"},{"vendor":"PyPI","product":"django","name":"django","label":"django","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/django","purlType":"pypi","versions":[{"text":"≥ 0.96.0, < 0.96.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.0, < 1.0.3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.96.0, < 0.96.4 | ≥ 1.0, < 1.0.3 | < 1.1","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.openwall.com/lists/oss-security/2009/07/29/2","label":"www.openwall.com/lists/oss-security/2009/07/29/2","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"http://www.securityfocus.com/bid/35859","label":"www.securityfocus.com/bid/35859","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","WEB"]},{"url":"http://code.djangoproject.com/changeset/11353","label":"code.djangoproject.com/changeset/11353","hostname":"code.djangoproject.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539134","label":"bugs.debian.org/cgi-bin/bugreport.cgi?bug=539134","hostname":"bugs.debian.org","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-August/msg00055.html","label":"www.redhat.com/archives/fedora-package-announce/2009-August/msg00055.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource FEDORA","WEB"]},{"url":"http://secunia.com/advisories/36137","label":"secunia.com/advisories/36137","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Advisory"]},{"url":"http://secunia.com/advisories/36153","label":"secunia.com/advisories/36153","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Advisory"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-August/msg00069.html","label":"www.redhat.com/archives/fedora-package-announce/2009-August/msg00069.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource FEDORA","WEB"]},{"url":"http://www.djangoproject.com/weblog/2009/jul/28/security/","label":"www.djangoproject.com/weblog/2009/jul/28/security/","hostname":"www.djangoproject.com","tags":["X Refsource CONFIRM","Patch","Vendor Advisory","ARTICLE"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-2659","label":"nvd.nist.gov/vuln/detail/CVE-2009-2659","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/django/django/commit/da85d76fd6ca846f3b0ff414e042ddb5e62e2e69","label":"github.com/django/django/commit/da85d76fd6ca846f3b0ff414e042ddb5e62e2e69","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/django/django/commit/df7f917b7f51ba969faa49d000ffc79572c5dcb4","label":"github.com/django/django/commit/df7f917b7f51ba969faa49d000ffc79572c5dcb4","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/django/django","label":"github.com/django/django","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2009-3.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2009-3.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://web.archive.org/web/20111211001428/http://www.securityfocus.com/bid/35859","label":"web.archive.org/web/20111211001428/http://www.securityfocus.com/bid/35859","hostname":"web.archive.org","tags":["WEB"]},{"url":"http://www.djangoproject.com/weblog/2009/jul/28/security","label":"www.djangoproject.com/weblog/2009/jul/28/security","hostname":"www.djangoproject.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-9xg7-gg9m-rmq9","label":"github.com/advisories/GHSA-9xg7-gg9m-rmq9","hostname":"github.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2009-2659","label":"security-tracker.debian.org/tracker/CVE-2009-2659","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2009-08-04T16:13:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-07T05:59:56.995Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":20,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T20:58:32.453Z","stale":false,"partial":false}}