CVE-2023-3040: Out of Bounds Access Leading to Undefined Behavior
Vulnerability summary
CVE-2023-3040 is a high (CVSS 7.5) Out-of-bounds Read vulnerability in cloudflare lua-resty-json. EPSS estimates a 0.71% chance of exploitation in the next 30 days, higher than 54.8% of scored vulnerabilities.
Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 14-06-2023PublishedVulnerability first disclosed.
- 02-01-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- CVE.orgCNA3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:LDiffers
EPSS trend
Probability
0.71%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.71% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Cloudflare1 product
- lua-resty-json≥ 1, < 14 | < 2023-05-05
1 vendor · 1 product
References
2 links- github.com/cloudflare/lua-resty-json/security/advisories/GHSA-h8rp-9622-83pgPatchThird Party Advisory