Advisory

GHSA-9xg7-gg9m-rmq9

Also known as: CVE-2009-2659, PYSEC-2009-3

Summary

Django Admin Media Handler Vulnerable to Directory Traversal

Details

The Admin media handler in core/servers/basehttp.py in Django 1.0 and 0.96 does not properly map URL requests to expected "static media files," which allows remote attackers to conduct directory traversal attacks and read arbitrary files via a crafted URL.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-02 03:37 UTC
Modified
2024-09-16 22:21 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0.96.0, fixed 0.96.4 (ecosystem)

Fixed versions

0.96.4

Fix

  • Fixed version 0.96.4
    pip install --upgrade django==0.96.4

django

PyPI · All systems

Affected

  • introduced 1.0, fixed 1.0.3 (ecosystem)

Fixed versions

1.0.3

Fix

  • Fixed version 1.0.3
    pip install --upgrade django==1.0.3

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences