CVE-2007-0404
EPSS 0.67%Django Arbitrary Code Execution
Published: 5/1/2022Modified: 4/28/2026
Description
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 (2)
- Debian/python-djangofrom 0, < 0.95.1-1
- PyPI/django>= 0.95, < 1.0
References (8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2007-0404
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2007-0404
- PATCHhttps://github.com/django/django
- WEBhttp://code.djangoproject.com/changeset/3592
- WEBhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407519
- WEBhttps://exchange.xforce.ibmcloud.com/vulnerabilities/31627
- WEBhttps://github.com/django/django/commit/518d406e53
- WEBhttps://github.com/django/django/commit/a132d411c6986418ee6c0edc331080aa792fee6e