Advisory

PYSEC-2026-630

Also known as: CVE-2007-0404, GHSA-qc99-g3wm-hgxr

Summary

Django Arbitrary Code Execution

Details

bin/compile-messages.py in Django 0.95 does not quote argument strings before invoking the msgfmt program through the os.system function, which allows attackers to execute arbitrary commands via shell metacharacters in a (1) .po or (2) .mo file.

Severity

Not rated by the source.

Dates

Published
2026-07-02 14:13 UTC
Modified
2026-07-06 08:00 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0.95, fixed 1.0 (ecosystem)

Fixed versions

1.0

Fix

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

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: PyPA Advisory Database · CC BY 4.0

Sources & licences