CVE-2023-5171
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-5171 is a high-impact use-after-free vulnerability discovered in Mozilla's JavaScript engine Ion compiler. The vulnerability was disclosed on September 26, 2023, affecting Firefox versions before 118, Firefox ESR versions before 115.3, and Thunderbird versions before 115.3. The issue was reported by security researcher Lukas Bernhard (Mozilla Advisory).

Technical details

During Ion compilation, a Garbage Collection could trigger a use-after-free condition in the JavaScript engine. The vulnerability occurs when a bailout happens due to a GuardMultipleShapes failure while successfully adding a new shape to the folded stub. The issue stems from untraced fields in the parent/child pair context during script finalization, potentially leading to accessing previously freed memory. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability allows an attacker to write two NUL bytes to memory and potentially cause an exploitable crash. The issue is considered high severity due to its potential for arbitrary code execution when successfully exploited (Mozilla Advisory).

Mitigation and workarounds

The vulnerability has been patched in Firefox 118, Firefox ESR 115.3, and Thunderbird 115.3. The fix involves storing data using weak pointers in the JitZone and implementing proper tracing of fields in the parent/child pair context. Users are strongly advised to upgrade to these versions or later (Debian Advisory, Fedora Update).

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-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026
CVE-2026-22184MEDIUM4.6
  • NixOSNixOS
  • java-1.8.0-openjdk-demo
NoYesJan 07, 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