{"id":"CVE-2023-54404","title":"Zod schema-validation library through 4.6.5 contains an uncontrolled resource consumption vulnerability that allows attackers to exhaust memory by submitting a large array to an application using an array schema without a length constrai…","summary":"Zod schema-validation library through 4.6.5 contains an uncontrolled resource consumption vulnerability that allows attackers to exhaust memory by submitting a large array to an application using an array schema without a length constrai…","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-770"],"vendor":"colinhacks","product":"zod","affected":["zod <= 4.6.5"],"published":"2026-10-01","updated":"2026-10-01","sourceUpdated":"2026-10-01T18:17:11.040","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2023-54404","references":[{"url":"https://github.com/colinhacks/zod/issues/1872","label":"disclosure@vulncheck.com"},{"url":"https://github.com/colinhacks/zod/pull/6475","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/zod-uncontrolled-resource-consumption-via-array-validation","label":"disclosure@vulncheck.com"}],"tags":["nvd","cve.org"],"ingestedAt":"2026-10-01T18:55:42.367Z","epss":0.00339,"epssPercentile":0.25007,"slug":"CVE-2023-54404","body":"## Overview\n\nZod schema-validation library through 4.6.5 contains an uncontrolled resource consumption vulnerability that allows attackers to exhaust memory by submitting a large array to an application using an array schema without a length constraint. Attackers can exploit the handleArrayResult parse logic in $ZodArray, which accumulates every validation issue for each failing element with no cap or early termination, causing the process to allocate excessive issue objects and crash due to out-of-memory conditions.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}