LuaJIT up to 2.1 lj_strfmt_num.c lj_strfmt_wfnum stack-based overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.3 | $0-$5k | 0.00 |
Summary
A vulnerability was found in LuaJIT up to 2.1. It has been rated as critical. Affected by this issue is the function lj_strfmt_wfnum of the file lj_strfmt_num.c. This manipulation causes stack-based overflow.
This vulnerability is tracked as CVE-2024-25176. No exploit exists.
It is suggested to install a patch to address this issue.
Details
A vulnerability classified as critical was found in LuaJIT up to 2.1. Affected by this vulnerability is the function lj_strfmt_wfnum of the file lj_strfmt_num.c. The manipulation with an unknown input leads to a stack-based overflow vulnerability. The CWE definition for the vulnerability is CWE-121. A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:
LuaJIT through 2.1 has a stack-buffer-overflow in lj_strfmt_wfnum in lj_strfmt_num.c.
The advisory is shared at github.com. This vulnerability is known as CVE-2024-25176 since 02/07/2024. The exploitation appears to be easy. Technical details are known, but no exploit is available.
The vulnerability scanner Nessus provides a plugin with the ID 242025 (Fedora 42 : luajit (2025-b1082e9269)), which helps to determine the existence of the flaw in a target environment.
Applying the patch 343ce0edaf3906a62022936175b2f5410024cbfc is able to eliminate this problem. The bugfix is ready for download at github.com.
The vulnerability is also documented in the databases at Tenable (242025) and EUVD (EUVD-2024-22512). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Product
Name
Version
License
Website
- Product: https://github.com/LuaJIT/LuaJIT/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.5VulDB Meta Temp Score: 5.3
VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Stack-based overflowCWE: CWE-121 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Partially
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 242025
Nessus Name: Fedora 42 : luajit (2025-b1082e9269)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔒
Patch: 343ce0edaf3906a62022936175b2f5410024cbfc
Timeline
02/07/2024 CVE reserved07/07/2025 Advisory disclosed
07/07/2025 VulDB entry created
07/25/2025 VulDB entry last update
Sources
Product: github.comAdvisory: 1149
Status: Confirmed
CVE: CVE-2024-25176 (🔒)
GCVE (CVE): GCVE-0-2024-25176
GCVE (VulDB): GCVE-100-315217
EUVD: 🔒
Entry
Created: 07/07/2025 20:28Updated: 07/25/2025 02:42
Changes: 07/07/2025 20:28 (58), 07/12/2025 17:59 (3), 07/24/2025 20:26 (1), 07/25/2025 02:42 (1)
Complete: 🔍
Cache ID: 216::103
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
No comments yet. Languages: en.
Please log in to comment.