title: Out of Bounds Access Leading to Undefined Behavior
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.
problem types: CWE-125 Out-of-bounds Read
affected:
{
defaultStatus: unaffected
packageName: lua-resty-json
platforms: [Windows, Linux, MacOS, x86, 64 bit, 32 bit]
product: lua-resty-json
vendor: Cloudflare
versions:
changes: [at: 14, status: unaffected], lessThan: 14, status: affected, version: 1, versionType: git
}
metrics:
cvssV3_1: [
attackComplexity: HIGH
attackVector: NETWORK
availabilityImpact: LOW
baseScore: 3.7
baseSeverity: LOW
confidentialityImpact: NONE
integrityImpact: NONE
privilegesRequired: NONE
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
version: 3.1
]
format: CVSS
scenarios: GENERAL