Skip to main content
CVE-2024-39702VulnerabilityPublished Updated

CVE-2024-39702: luajit2 · n/a

Affects luajit2Source CVE Database V5

0

Not known to be exploited · CVSS 5.9 Medium.

Data as of 26 Oct 2026, 08:30 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHubopenresty/luajit2pkg:github/openresty/luajit2Other threatsAffected
  • =1.19.3.1
  • =1.25.3.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Monitor network traffic for unusual patterns indicative of hash collision attacks, such as repeated requests with similar string payloads causing high CPU usage. 2. Limit request rates and implement rate limiting or throttling on endpoints served by OpenResty to reduce the impact of crafted requests. 3. Deploy Web Application Firewalls (WAFs) with rules to detect and block suspicious request patterns targeting string hashing functions. 4. Isolate OpenResty proxy servers behind load balancers or reverse proxies that can absorb or filter malicious traffic. 5. Review and update OpenResty versions regularly; apply patches or updates from the OpenResty project as soon as they become available. 6. Consider temporary workarounds such as disabling or modifying features that heavily rely on string interning if feasible. 7. Conduct performance testing under simulated attack conditions to understand system behavior and prepare incident response plans. 8. Engage with the OpenResty community or maintainers for early access to fixes or mitigation guidance.

Description

In lj_str_hash.c in OpenResty 1.19.3.1 through 1.25.3.1, the string hashing function (used during string interning) allows HashDoS (Hash Denial of Service) attacks. An attacker could cause excessive resource usage during proxy operations via crafted requests, potentially leading to a denial of service with relatively few incoming requests. This vulnerability only exists in the OpenResty fork in the openresty/luajit2 GitHub repository. The LuaJIT/LuaJIT repository.is unaffected.

References

Community reviews

Loading reviews…