CVE-2023-3040 Out of Bounds Access Leading to Undefined Behavior
An out-of-bounds access in a debug function of lua-resty-json could cause denial of service if used on untrusted input, though it is not exploitable in normal environments.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-3040?
CVE-2023-3040 is a low-severity denial of service vulnerability in Cloudflare lua-resty-json, published on 14 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A debug function in the lua-resty-json package, up to commit id 3ef9492bd3a44d9e51301d6adc3cd1789c8f534a (merged in PR #14) contained an out of bounds access bug that could have allowed an attacker to launch a DoS if the function was used to parse untrusted input data. It is important to note that because this debug function was only used in tests and demos, it was not exploitable in a normal environment.
Weakness: CWE-125
Which versions are affected by CVE-2023-3040?
It affects 1 product.
Products include Cloudflare Lua-Resty-Json.
How do I fix CVE-2023-3040?
No fix has been published for CVE-2023-3040 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-3040 being exploited?
There is no known exploitation of CVE-2023-3040 in the wild and no public exploit code.