Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2022-40960
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-40960 is a high-severity vulnerability discovered in Mozilla Firefox's URL parser implementation. The vulnerability was reported by Armin Ebert and fixed in Firefox 105 and Firefox ESR 102.3, released on September 20, 2022. The issue affects Firefox's handling of non-UTF-8 URLs in concurrent thread operations (Mozilla Advisory).

Technical details

The vulnerability stems from a thread-safety issue in the URL parser when handling non-UTF-8 data. Specifically, the concurrent use of the URL parser with non-UTF-8 data was not thread-safe, which could trigger a use-after-free condition. The issue manifests when parsing javascript: URI strings with a non-UTF-8 charset parameter, particularly during worker thread creation (Mozilla Bug).

Impact

The vulnerability is rated as high severity and could lead to a use-after-free condition causing a potentially exploitable crash. This could potentially allow attackers to execute arbitrary code on affected systems. The issue affects multiple Mozilla products including Firefox, Firefox ESR, and Thunderbird (Mozilla Advisory).

Exploitability

While the vulnerability was rated as high severity, Mozilla security researchers indicated that constructing an exploit would not be trivial. The issue was discovered through testing with Address Sanitizer (ASAN) which detected heap-use-after-free conditions when continuously spawning a large number of workers with specific URL conditions (Mozilla Bug).

Mitigation and workarounds

The vulnerability was fixed in Firefox 105, Firefox ESR 102.3, and Thunderbird 102.3. The fix involved making the nsTextToSubURI::UnEscapeNonAsciiURI function static to prevent thread-safety issues. Users are advised to upgrade to these versions or later to mitigate the vulnerability (Mozilla Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Alpine

Fixed

edge

firefox-esr: 102.3.0-r0

Fixed

v3.18

firefox-esr: 102.3.0-r0

Fixed

v3.19

firefox-esr: 102.3.0-r0

Fixed

v3.20

firefox-esr: 102.3.0-r0

Fixed

v3.21

firefox-esr: 102.3.0-r0

Fixed

v3.22

firefox-esr: 102.3.0-r0

Fixed

v3.23

firefox-esr: 102.3.0-r0

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-91782LOW1.9
  • NixOS logoNixOS
  • gcc10-binutils
NoNoSep 15, 2026
CVE-2026-91781LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91780LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-91779LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-90831LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 14, 2026

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