Vulnerability Note VU#329500

Mozilla products vulnerable to memory corruption via large regular expression in JavaScript

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

Overview

A vulnerability in the way the JavaScript engine of Mozilla products and derivative programs handles a large regular expression could allow a remote attacker to crash the application or execute arbitrary code on a vulnerable system.

Description

A regular expression is a special text string for describing a search pattern. The JavaScript interpreter in the Mozilla browser and derived products includes the ability to process regular expressions. An integer overflow vulnerability has been discovered in the way that some versions of these products handle and overly large regular expression. According to Mozilla Foundation Security Advisory 2006-11:

    As part of the Firefox 1.5 release we fixed several crash bugs to improve the stability of the product. Some of these crashes showed evidence of memory corruption that we presume could be exploited to run arbitrary code and have been applied to the Firefox 1.0.x and Mozilla Suite 1.7.x releases
    [...]
    Alden D'Souza reported a crash when using an extremely large regular expression in JavaScript. This was tracked down to a 16-bit integer overflow that could potentially cause the browser to interpret attacker supplied data as JavaScript bytecode.
    [...]
    Note: Thunderbird shares the browser 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

Remote attackers may be able to crash a vulnerable program or 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-11 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 programs.

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 Alden D'Souza for reporting the underlying bug to them.

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

Other Information

  • CVE IDs: Unknown
  • Date Public: 11 Apr 2006
  • Date First Published: 17 Apr 2006
  • Date Last Updated: 26 Apr 2006
  • Severity Metric: 12.24
  • Document Revision: 9

Feedback

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