Description
django.contrib.sessions in Django before 1.2.7 and 1.3.x before 1.3.1, when session data is stored in the cache, uses the root namespace for both session identifiers and application-data keys, which allows remote attackers to modify a session by triggering use of a key that is equal to that session's identifier.
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 | 1.3.1-1 | — |
| Debian 13 | python-django | 1.3.1-1 | — |
| Debian 12 | python-django | 1.3.1-1 | — |
| Debian 6.0 | python-django | 1.2.3-3+squeeze2 | DSA-2332-1 |
| Debian 5.0 | python-django | 1.0.2-1+lenny3 | DSA-2332-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | < 1.2.7 | 1.2.7 | GHSA-x88j-93vc-wpmp |
| PyPI | django | >= 1.3, < 1.3.1 | 1.3.1 | GHSA-x88j-93vc-wpmp |
| PyPI | django | < 1.2.7 · >= 1.3, < 1.3.1 | 1.2.7, 1.3.1 | PYSEC-2011-1 |
Advisories 1
- DSA-2332-1 python-django - several issues Debian Security (DSA / DLA) · Mar 9, 2026
References
- openSUSE-SU-2012:0653 vendor-advisory
- DSA-2332 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=737366
- 46614 third-party-advisory
- [oss-security] 20110911 CVE Request -- Django: v1.3.1, v1.2.7 multiple security flaws mailing-list
- https://www.djangoproject.com/weblog/2011/sep/10/127/
- [oss-security] 20110913 Re: CVE Request -- Django: v1.3.1, v1.2.7 multiple security flaws mailing-list
- https://www.djangoproject.com/weblog/2011/sep/09/