Django .po file code execution

django-po-code-execution (31627) The risk level is classified as HighHigh Risk

Description:

Django could allow a remote attacker to execute arbitrary code on the system, caused by a vulnerability in the compile-messages script. A remote attacker could send a specially-crafted .po file to execute arbitrary code with the privileges of the application.

Platforms Affected:

  • Django, Django 0.95

Remedy:

Refer to Debian Bug report logs - #407519 for patch, upgrade, or suggested workaround information. See References.

Consequences:

Gain Access

References:

  • Debian Bug report logs - #407519, Security fix for Django i18n system at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407519.
  • Django Web site, django at http://www.djangoproject.com/.
  • BID-22134: Django Message Files Remote Arbitrary Command Execution Vulnerability
  • CVE-2007-0404: 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.
  • SA23826: Django Two Vulnerabilities

Reported:

Jan 18, 2007

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page