What’s Vulnerable › Vulnerabilities
CVE-2023-3040: Out of Bounds Access Leading to Undefined Behavior
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-06-14 · updated 2026-06-17
- Weakness: CWE-125
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.
Affected products
- Cloudflare Lua-Resty-Json: before 2023-05-05 — fixed in 2023-05-05
How to fix
Upgrade to a fixed version: Cloudflare Lua-Resty-Json 2023-05-05. Check the vendor advisory for mitigations.
References
- https://github.com/cloudflare/lua-resty-json/pull/14
- https://github.com/cloudflare/lua-resty-json/security/advisories/GHSA-h8rp-9622-83pg
- https://github.com/cloudflare/lua-resty-json/pull/14
- https://github.com/cloudflare/lua-resty-json/security/advisories/GHSA-h8rp-9622-83pg
Get alerted when CVE-2023-3040 or the next vulnerability affects your stack