CVE-2023-4048
NixOS vulnerability analysis and mitigation

Overview

An out-of-bounds read vulnerability (CVE-2023-4048) was discovered in Firefox's DOMParser functionality that could lead to an exploitable crash when parsing HTML in low memory situations. The vulnerability affects Firefox versions prior to 116, Firefox ESR versions prior to 102.14, and Firefox ESR versions prior to 115.1. This security issue was reported by Irvan Kurniawan and was fixed in August 2023 (Mozilla Advisory).

Technical details

The vulnerability occurs in the DOMParser.parseFromString function when processing HTML innerHTML with mimeType text/html under low virtual memory conditions. The issue manifests in mozilla::dom::Element::BindToTree after a realloc failure in AttrArray::GrowBy. When newImpl becomes nullptr due to the realloc failure, NSENSURETRUE returns false, leading to an out-of-bounds read at various memory addresses (Mozilla Advisory, Bugzilla).

Impact

The vulnerability has been rated as high severity with a CVSS v3.1 base score of 7.5. When successfully exploited, it could lead to a crash of the application and potential arbitrary code execution through memory corruption (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Firefox 116, Firefox ESR 102.14, and Firefox ESR 115.1. Users are advised to upgrade to these or later versions. The fix involves proper handling of memory allocation failures in the AttrArray implementation to prevent memory leaks (Mozilla Advisory, Debian 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-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 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