Advisory

UBUNTU-CVE-2026-8404

Also known as: CVE-2026-8404

Summary

The record has no summary.

Details

An issue was discovered in Django 5.2 before 5.2.15 and 6.0 before 6.0.6. django.middleware.cache.UpdateCacheMiddleware in Django does not match Cache-Control response directives case-insensitively, which allows remote attackers to read responses that were incorrectly cached because their Cache-Control directives used uppercase or mixed-case values. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Ahmed Badawe for reporting this issue.

Severity

Low Basis: CVSS v3 score 3.1, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

Dates

Published
2026-06-03 13:00 UTC
Modified
2026-10-02 12:18 UTC

Affected packages and fixes

python-django

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2:3.2.12-2ubuntu1.29 (ecosystem)

Fixed versions

2:3.2.12-2ubuntu1.29

Fix

  • Fixed version 2:3.2.12-2ubuntu1.29
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python-django

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 3:4.2.11-1ubuntu1.18 (ecosystem)

Fixed versions

3:4.2.11-1ubuntu1.18

Fix

  • Fixed version 3:4.2.11-1ubuntu1.18
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python-django

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

python-django

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 3:5.2.9-0ubuntu4.3 (ecosystem)

Fixed versions

3:5.2.9-0ubuntu4.3

Fix

  • Fixed version 3:5.2.9-0ubuntu4.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences