HIGH7.5
PYSEC-2026-630
Django Arbitrary Code Execution
Quick fix
PYSEC-2026-630 — django: upgrade to the fixed version with the command below.
pip install --upgrade 'django>=1.0'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2007-0404[ADVISORY]
- https://github.com/django/django/commit/518d406e53[WEB]
- https://github.com/django/django/commit/a132d411c6986418ee6c0edc331080aa792fee6e[WEB]
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407519[WEB]
- https://exchange.xforce.ibmcloud.com/vulnerabilities/31627[WEB]
- https://github.com/django/django[PACKAGE]
- http://code.djangoproject.com/changeset/3592[WEB]
- https://pypi.org/project/django[PACKAGE]
- https://github.com/advisories/GHSA-qc99-g3wm-hgxr[ADVISORY]