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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 0.95.1-1 | — |
| Debian 13 | python-django | 0.95.1-1 | — |
| Debian 12 | python-django | 0.95.1-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 0.95, < 1.0 | 1.0 | GHSA-mwv2-398h-v489 |
References
- django-request-session-hijacking(31628) vdb-entry
- 23826 third-party-advisory
- http://code.djangoproject.com/changeset/3754
- 22138 vdb-entry