# CVE-2023-3040: Out of Bounds Access Leading to Undefined Behavior

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-06-14 · Modified: 2025-01-02
- Record: https://cvemate.com/vulnerability/CVE-2023-3040 · JSON: https://cvemate.com/vulnerability/CVE-2023-3040/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.71%, percentile 54.877%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- cloudflare lua-resty-json: ≥ 1, \< 14 \| \< 2023-05-05

## References

- <https://github.com/cloudflare/lua-resty-json/pull/14>
- <https://github.com/cloudflare/lua-resty-json/security/advisories/GHSA-h8rp-9622-83pg>

---

Data as of 2026-12-05T11:51:36.234Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
