Vulnerability Note VU#492382

Mozilla products JavaScript engine fail to properly handle garbage-collection

Original Release date: 17 Apr 2006 | Last revised: 17 Apr 2006

Overview

A vulnerability in the way the JavaScript engine of Mozilla products and derivative programs handles garbage collection could allow a remote attacker to execute arbitrary code on a vulnerable system.

Description

The JavaScript programming language uses a method of memory management known as automatic garbage collection. A vulnerability has been discovered in the way that the JavaScript engine included with Mozilla and derived programs handles the process of garbage collection. According to Mozilla Foundation Security Advisory 2006-10:

    Igor Bukanov has audited the JavaScript engine for routines that use temporary variables not protected against garbage-collection. If malicious content could cause garbage-collection to run during the lifetime of these temporaries then the original routine would end up operating on freed memory.

    The risk appears remote, but this type of memory corruption could potentially be used by an attacker to run arbitrary code including the installation of malware.

    Note: Thunderbird shares the JavaScript engine with Firefox and could be vulnerable if JavaScript were to be enabled in mail. This is not the default setting and we strongly discourage users from running JavaScript in mail.

Impact

A remote attacker may be able to run code of their choosing on an affected system. The attacker-supplied code would be executed with the permissions of the user running the vulnerable program.

Solution

Upgrade

The Mozilla Foundation has published Mozilla Foundation Security Advisory 2006-10 in response to this issue. Users are encouraged to review this advisory and upgrade to the fixed versions of the products it describes.

Workarounds


Users, particularly those who are unable to upgrade to a fixed version of the software, are encouraged to disable JavaScript in the affected program.

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
Mozilla, Inc.Affected17 Apr 200617 Apr 2006
Red Hat, Inc.Affected-17 Apr 2006
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A N/A

References

Credit

Thanks to Mozilla Foundation Security Advisory for reporting this vulnerability. The Mozilla Foundation, in turn, credits Igor Bukanov with reporting this issue to them.

This document was written by Chad Dougherty based upon information supplied by the Mozilla Foundation.

Other Information

  • CVE IDs: CVE-2006-1742
  • Date Public: 13 Apr 2006
  • Date First Published: 17 Apr 2006
  • Date Last Updated: 17 Apr 2006
  • Severity Metric: 12.96
  • Document Revision: 2

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.