Ameeba Exploit Tracker

Tracking CVEs, exploits, and zero-days for defensive cybersecurity research.

Ameeba Blog Search
TRENDING · 1 WEEK
Attack Vector
Vendor
Severity

CVE-2024-25177: LuaJIT Denial of Service Vulnerability Due to Unsynced NULL Metatables

Ameeba Chat Store screens
Download Ameeba Chat

Overview

The vulnerability identified as CVE-2024-25177 is a critical flaw in LuaJIT through version 2.1. This flaw can lead to a Denial of Service (DoS) attack due to an unsinking of IR_FSTORE for NULL metatable. It is a significant problem as it potentially compromises system security and data integrity, making affected systems prone to data leakage.

Vulnerability Summary

CVE ID: CVE-2024-25177
Severity: High (7.5 CVSS score)
Attack Vector: Network
Privileges Required: None
User Interaction: None
Impact: Denial of Service, potential system compromise, and data leakage

Affected Products

Ameeba Chat Icon Escape the Surveillance Era

Most apps won’t tell you the truth.
They’re part of the problem.

Phone numbers. Emails. Profiles. Logs.
It’s all fuel for surveillance.

Ameeba Chat gives you a way out.

  • • No phone number
  • • No email
  • • No personal info
  • • Anonymous aliases
  • • End-to-end encrypted

Chat without a trace.

Product | Affected Versions

LuaJIT | Up to 2.1

How the Exploit Works

The exploit works by taking advantage of an unsinking of IR_FSTORE for NULL metatables in LuaJIT. An attacker can send specially-crafted packets to the vulnerable system, causing the system to crash or become unresponsive. This situation can lead to potential system compromise or data leakage if left unmitigated.

Conceptual Example Code

The following is a conceptual example of how the vulnerability might be exploited. This example does not represent a real exploit but is indicative of how an attacker might trigger the vulnerability.

-- Conceptual LuaJIT exploit code
local malicious_table = {}
setmetatable(malicious_table, nil) -- Set metatable to NULL
-- The following line attempts to unsink IR_FSTORE, leading to DoS
malicious_table["trigger_vulnerability"] = "Exploit CVE-2024-25177"

In this conceptual example, the attacker creates a Lua table with a NULL metatable, then attempts to unsink IR_FSTORE, leading to a Denial of Service.

Mitigation Guidance

To mitigate this vulnerability, users are advised to apply the latest vendor-provided patch that addresses this issue. If a patch is not immediately available, implementing a Web Application Firewall (WAF) or Intrusion Detection System (IDS) can provide temporary protection by blocking malicious traffic that attempts to exploit this vulnerability.

Want to discuss this further? Join the Ameeba Cybersecurity Group Chat.

Disclaimer:

The information and code presented in this article are provided for educational and defensive cybersecurity purposes only. Any conceptual or pseudocode examples are simplified representations intended to raise awareness and promote secure development and system configuration practices.

Do not use this information to attempt unauthorized access or exploit vulnerabilities on systems that you do not own or have explicit permission to test.

Ameeba and its authors do not endorse or condone malicious behavior and are not responsible for misuse of the content. Always follow ethical hacking guidelines, responsible disclosure practices, and local laws.
Ameeba Chat