ADVISORIES

PyPA Advisory Database

PYSEC-2026-630

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.

Affected packages

EcosystemPackageAffected versions
PyPIdjango
From 0.95 before 1.0 (fixed in 1.0)

References