Description
The (1) contrib.sessions.backends.base.SessionBase.flush and (2) cache_db.SessionStore.flush functions in Django 1.7.x before 1.7.10, 1.4.x before 1.4.22, and possibly other versions create empty sessions in certain circumstances, which allows remote attackers to cause a denial of service (session store consumption) via unspecified vectors.
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.7.10-1 | — |
| Debian 13 | python-django | 1.7.10-1 | — |
| Debian 12 | python-django | 1.7.10-1 | — |
| Debian 8 | python-django | 1.7.7-1+deb8u2 | DSA-3338-1 |
| Debian 7 | python-django | 1.4.5-1+deb7u13 | DSA-3338-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | python-django | 1.2.3-3+squeeze14 | DLA-301-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | python-django | 1.6.1-2ubuntu0.10 | USN-2720-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenStack 6 | python-django +2 | 1.6.11-3.el7ost | RHSA-2015:1894 |
| Red Hat OpenStack 5 | python-django +2 | 1.6.11-3.el6ost | RHSA-2015:1767, RHSA-2015:1766 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 1.7, < 1.7.10 | 1.7.10 | GHSA-x38m-486c-2wr9 |
| PyPI | django | >= 1.4, < 1.4.22 | 1.4.22 | GHSA-x38m-486c-2wr9 |
| PyPI | django | >= 1.7, < 1.7.10 · >= 1.4, < 1.4.22 | 1.7.10, 1.4.22 | PYSEC-2015-23 |
Advisories 6
- RHSA-2015:1894 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2015:1766 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2015:1767 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DSA-3338-1 python-django - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-301-1 python-django - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-2720-1 python-django vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
References
- FEDORA-2015-1dd5bc998f vendor-advisory
- RHSA-2015:1894 vendor-advisory
- DSA-3338 vendor-advisory
- 1033318 vdb-entry
- RHSA-2015:1767 vendor-advisory
- USN-2720-1 vendor-advisory
- RHSA-2015:1766 vendor-advisory
- 76440 vdb-entry
- https://www.djangoproject.com/weblog/2015/aug/18/security-releases/
- http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html