Mozilla Firefox and Thunderbird Certificate Length Validation Vulnerability

Vulnerability

A vulnerability exists in Mozilla Firefox versions prior to 135, Firefox ESR versions prior to 128.7, and Thunderbird versions prior to 128.7 and in Thunderbird versions prior to 135. This vulnerability arises because the length of certificates was not properly validated when they were added to a certificate store. Although only trusted data was processed, the improper validation could potentially allow for the acceptance of excessively long certificates as valid.

Impact

Exploitation of this vulnerability could lead to the acceptance of long certificates, which may cause issues in certificate handling or validation processes.

Reproduction

The vulnerability can be reproduced by adding a certificate with an excessively long length to the certificate store. This can be done by using a certificate that exceeds the maximum allowed length, taking advantage of the improper validation logic. The issue arises from the use of 'u16::max' instead of 'u16::MAX' in the certificate length validation, which could allow very long certificates to be processed as valid.

Remediation

Users can update to Firefox 135, Firefox ESR 128.7, Thunderbird 135, or Thunderbird 128.7 to address this vulnerability.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
8.4
impact
0.0
exploitability
6.0
remediation
7.7
relevance
0.0
threat
6.4
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.