CVE-2023-3040 json
Out of Bounds Access Leading to Undefined Behavior
published 2023-06-14 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-43732
- cvss
- 3.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 53%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- cloudflare lua-resty-json 2023-05-05
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 22 mo ago
Exploit prediction
0.71% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Cloudflare lua-resty-json
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/cloudflare/lua-resty-json/pull/14
patch
-
github.com
/cloudflare/lua-resty-json/security/advisories/GHSA-h8rp-9622-83pg
patch, third-party-advisory
Sources
- CVE List CVE-2023-3040
- NVD CVE-2023-3040
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.