CVE-2022-34481
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-34481 is a security vulnerability discovered in Mozilla Firefox and Thunderbird's nsTArray_Impl::ReplaceElementsAt() function. The vulnerability was disclosed on June 28, 2022, and affects Firefox versions < 102, Firefox ESR < 91.11, Thunderbird < 102, and Thunderbird < 91.11. This moderate severity issue involves an integer overflow condition that could occur when the number of elements to replace was too large for the container (Mozilla Advisory, CVE Mitre).

Technical details

The vulnerability exists in the nsTArrayImpl::ReplaceElementsAt() function where an integer overflow could occur during array element replacement operations. The issue specifically relates to insufficient validation of the 'aCount' parameter, which could lead to an underflow condition when calculating Length() + aArrayLen - aCount. This calculation is used for memory allocation in the array manipulation process ([Mozilla Bugzilla](https://bugzilla.mozilla.org/showbug.cgi?id=1497246)).

Impact

While classified as a moderate severity issue, the vulnerability could potentially lead to memory corruption if successfully exploited. The impact is somewhat mitigated in Thunderbird as scripting is disabled by default when reading mail, though the risk remains in browser or browser-like contexts (Mozilla Advisory).

Mitigation and workarounds

The vulnerability was patched in Firefox 102, Firefox ESR 91.11, Thunderbird 102, and Thunderbird 91.11. Users should upgrade to these versions or later to receive the security fix. The patch implements additional validation checks to prevent the integer overflow condition (Mozilla Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management