CVE-2024-25176
NixOS vulnerability analysis and mitigation

Overview

LuaJIT through version 2.1 contains a stack-buffer-overflow vulnerability in the ljstrfmtwfnum function within ljstrfmtnum.c. The vulnerability was discovered in January 2024 and has been assigned CVE-2024-25176. The issue has received a CVSS v3.1 base score of 9.8 (Critical) (CISA-ADP).

Technical details

The vulnerability is classified as a stack-based buffer overflow (CWE-121) that occurs in the number formatting functionality of LuaJIT. Specifically, the issue exists in the ljstrfmtwfnum function within ljstrfmtnum.c, where improper boundary checking leads to a buffer overflow condition when processing certain numeric format strings (GitHub Issue).

Impact

The vulnerability can be exploited to cause memory leaks or trigger a Denial of Service (DoS) condition in affected systems (POC Gist).

Mitigation and workarounds

A fix has been implemented in the LuaJIT repository through commit 343ce0e, which addresses the zero stripping functionality in the %g number formatting (Fix Commit). Users are advised to upgrade to the patched version when available.

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-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 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