CVE-2023-54404
Zod schema-validation library through 4.6.5 contains an …
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 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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/colinhacks/zod/issues/1872
- github.com/colinhacks/zod/pull/6475
- www.vulncheck.com/advisories/zod-uncontrolled-resource-consumption-via-array-validation
- github.com/colinhacks/zod/pull/6652
- nvd.nist.gov/vuln/detail/CVE-2023-54404
- github.com/colinhacks/zod/commit/a0ebf970f2d752e5f58527cd2942ff48be4f46bd
- github.com/advisories/GHSA-mrhx-c7xc-m3w5
- nvd.nist.gov/vuln/detail/CVE-2023-54404
- cve.org/CVERecord?id=CVE-2023-54404
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.