
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
The vulnerability can be exploited to cause memory leaks or trigger a Denial of Service (DoS) condition in affected systems (POC Gist).
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.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."