{"id":"CVE-2007-0405","aliases":["DEBIAN-CVE-2007-0405","EUVD-2022-4642","GHSA-mwv2-398h-v489","PYSEC-2026-629"],"status":"published","title":"Django Improper Access Control","description":"The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remote authenticated users to gain the privileges of a different user.","severity":{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.01308,"percentile":0.70767,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2007-01-23T00:00:00Z","modified":"2026-10-21T17:47:38Z","fixes":[{"ecosystem":"PyPI","package":"django","fixed_in":["1.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"python-django","fixed_in":["0.95.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"python-django","fixed_in":["0.95.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"python-django","fixed_in":["0.95.1-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"django","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.95"},{"last_affected":"0.95"},{"fixed":"1.0"}]}],"versions":["0.95"]},{"source":"osv","ecosystem":"Debian:12","package":"python-django","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.95.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"python-django","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.95.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"python-django","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.95.1-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"django","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.95"},{"fixed":"1.0"}]}],"versions":["0.95"]},{"source":"osv","ecosystem":"PyPI","package":"django","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.95"},{"fixed":"1.0"}]}],"versions":["0.95"]}],"products":[{"vendor":"django_project","product":"django"}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/31628","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://secunia.com/advisories/23826","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"http://code.djangoproject.com/changeset/3754","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/22138","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-0405","tags":["advisory"]},{"url":"https://github.com/django/django/commit/3c5782287e","tags":["web"]},{"url":"https://github.com/django/django/commit/e89f0a65581f82a5740bfe989136cea75d09cd67","tags":["web"]},{"url":"https://github.com/advisories/GHSA-mwv2-398h-v489","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2007-0405","tags":["advisory"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://pypi.org/project/django","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2007-0405","description":"The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remote authenticated users to gain the privileges of a different user.","status":"published","published":"2007-01-23T00:00:00Z","modified":"2024-08-07T12:19:29.955Z","updated_at":"2026-11-02T13:34:03.879328Z"}],"euvd":[{"id":"EUVD-2022-4642","description":"The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remote authenticated users to gain the privileges of a different user.","status":"published","published":"2007-01-23T00:00:00Z","modified":"2024-08-07T12:19:29Z","updated_at":"2026-11-03T01:38:30.634408Z"}],"ghsa":[{"id":"GHSA-mwv2-398h-v489","title":"Django Improper Access Control","description":"The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remote authenticated users to gain the privileges of a different user.","status":"published","published":"2022-05-01T17:44:04Z","modified":"2024-05-23T16:40:38Z","updated_at":"2026-11-02T14:37:51.549437Z"}],"nvd":[{"id":"CVE-2007-0405","description":"The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remote authenticated users to gain the privileges of a different user.","status":"published","published":"2007-01-23T00:28:00Z","modified":"2026-06-16T22:35:30.513Z","cvss":[{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:01:11.752648Z"}],"osv":[{"id":"CVE-2007-0405","description":"The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remote authenticated users to gain the privileges of a different user.","status":"published","published":"2007-01-23T00:28:00Z","modified":"2026-07-06T08:11:20.9928749Z","updated_at":"2026-11-02T15:43:56.865964Z"},{"id":"DEBIAN-CVE-2007-0405","description":"The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remote authenticated users to gain the privileges of a different user.","status":"published","published":"2007-01-23T00:28:00Z","modified":"2026-10-21T17:47:38.175043686Z","updated_at":"2026-11-02T15:45:23.105674Z"},{"id":"GHSA-mwv2-398h-v489","title":"Django Improper Access Control","description":"The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remote authenticated users to gain the privileges of a different user.","status":"published","published":"2022-05-01T17:44:04Z","modified":"2026-07-06T08:11:20.9928749Z","updated_at":"2026-11-02T15:46:52.534897Z"},{"id":"PYSEC-2026-629","title":"Django Improper Access Control","description":"The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remote authenticated users to gain the privileges of a different user.","status":"published","published":"2026-07-02T14:13:19.912742Z","modified":"2026-07-06T08:00:11.820294769Z","updated_at":"2026-11-02T15:52:57.671918Z"}]}}
