Home / Cloudflare / lua-resty-json / CVE-2023-3040
CVE-2023-3040: is it exploited, and which versions of Cloudflare lua-resty-json are affected and fixed?
CVE-2023-3040 is an out-of-bounds read vulnerability in Cloudflare lua-resty-json. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: lua-resty-json before 2023-05-05 (NVD). Fixed in 2023-05-05 (NVD). Severity: Low (3.7, CVSS 3.1, from cloudflare).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:38 UTC.
What is CVE-2023-3040?
Out of Bounds Access Leading to Undefined Behavior
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.
From the CVE record by cloudflare, last updated January 2, 2025, 19:21 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Cloudflare | lua-resty-json Windows, Linux, MacOS, x86, 64 bit, 32 bit | not stated |
As the CVE record by cloudflare states it, last updated January 2, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| cloudflare | lua-resty-json | before 2023-05-05 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:13 UTC.
How severe is CVE-2023-3040?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 3.7 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L | cloudflare |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-3040 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, January 2, 2025)
- EPSS
- 0.71% probability of exploitation activity in the next 30 days, percentile 54.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-125 Out-of-bounds Read
Where are the vendor advisories and references?
- https://github.com/cloudflare/lua-resty-json/pull/14
- https://github.com/cloudflare/lua-resty-json/security/advisories/GHSA-h8rp-9622-83pg
Who found and reported it?
- Carlos López (00xc) (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- June 1, 2023
- Published
- June 14, 2023, 11:54 UTC
- CVE record updated
- January 2, 2025, 19:21 UTC by cloudflare
- NVD
- Modified, last modified June 17, 2026, 06:13 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:38 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2023-3040
Is CVE-2023-3040 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.71% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Cloudflare lua-resty-json are affected by CVE-2023-3040?
lua-resty-json before 2023-05-05, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2023-3040?
2023-05-05, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-3040?
Low (3.7, CVSS 3.1, from cloudflare). The severity table above shows each score with its source.
Where is the official record of CVE-2023-3040?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.