CVE-2023-54404
Zod can exhaust memory while validating oversized constrained collections
This CVE ID has been rejected or withdrawn by its CVE Numbering Authority. The described memory use only grows in proportion to input already allocated by JSON.parse before Zod runs, is reachable only without an application request-size limit, and reflects expected validator behavior rather than a defect in Zod.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
What each source reports
GitHub Advisories Score usedGHSA-mrhx-c7xc-m3w5
8.2
Zod can exhaust memory while validating oversized constrained collections
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.
- Record
GHSA-mrhx-c7xc-m3w5- CVSS 4.0
- 8.2 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-770
- Updated
- 2026-11-02
CVE List No score
This CVE ID has been rejected or withdrawn by its CVE Numbering Authority. The described memory use only grows in proportion to input already allocated by JSON.parse before Zod runs, is reachable only without an application request-size limit, and reflects expected validator behavior rather than a defect in Zod.
- Record
CVE-2023-54404- Updated
- 2026-11-02
EUVDEUVD-2023-60702
8.2
This CVE ID has been rejected or withdrawn by its CVE Numbering Authority. The described memory use only grows in proportion to input already allocated by JSON.parse before Zod runs, is reachable only without an application request-size limit, and reflects expected validator behavior rather than a defect in Zod.
- Record
EUVD-2023-60702- CVSS 4.0
- 8.2 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - Updated
- 2026-11-02
NVD No score
Rejected reason: This CVE ID has been rejected or withdrawn by its CVE Numbering Authority. The described memory use only grows in proportion to input already allocated by JSON.parse before Zod runs, is reachable only without an application request-size limit, and reflects expected validator behavior rather than a defect in Zod.
- Record
CVE-2023-54404- Updated
- 2026-11-02
OSV
8.2
Zod Uncontrolled Resource Consumption via Unbounded Array, Set, and Map Validation
Zod schema-validation library contains an uncontrolled resource consumption vulnerability that allows attackers to exhaust memory by submitting a large array, set or map to an application that uses a container schema without an explicit size constraint. The handleArrayResult parse logic in $ZodArray (and the equivalent set and map paths) accumulates every validation issue for each failing element with no cap or early termination, causing the process to allocate one issue object per element and crash under out-of-memory conditions. This is reachable in the default configuration whenever a container schema such as z.array() is declared without a size bound. The upstream change in commit e06a510 (pull request 6652, first released in 4.6.6) only moves the .max(), .length() and .size() size checks to run before element parsing, so it rejects oversized input for schemas that declare an explicit upper bound; per the maintainer, unbounded containers are unchanged. No released version remediates the unbounded (default) case described here, and an opt-in setting to cap total accumulated errors was proposed but not merged.
- Record
CVE-2023-54404- CVSS 4.0
- 8.2 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - Weakness
- CWE-1188, CWE-770
- Updated
- 2026-11-02
OSVGHSA-mrhx-c7xc-m3w5
8.2
Zod can exhaust memory while validating oversized constrained collections
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.
- Record
GHSA-mrhx-c7xc-m3w5- CVSS 4.0
- 8.2 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-770
- Updated
- 2026-11-02
Show 6 moreShow less
OSVCLSA-2026-1793221263 No score
TuxCare security update for zod (1 CVE)
TuxCare rebuilt zod to address 1 CVE. Fixed in 3.25.76-tuxcare.2.
- Record
CLSA-2026-1793221263- Updated
- 2026-11-02
OSVCLSA-2026-1793221310 No score
TuxCare security update for zod (1 CVE)
TuxCare rebuilt zod to address 1 CVE. Fixed in 3.21.4-tuxcare.2.
- Record
CLSA-2026-1793221310- Updated
- 2026-11-02
OSVCLSA-2026-1793241442 No score
TuxCare security update for zod (1 CVE)
TuxCare rebuilt zod to address 1 CVE. Fixed in 3.25.48-tuxcare.1.
- Record
CLSA-2026-1793241442- Updated
- 2026-11-02
OSVCLSA-2026-1793241599 No score
TuxCare security update for zod (1 CVE)
TuxCare rebuilt zod to address 1 CVE. Fixed in 3.25.75-tuxcare.1.
- Record
CLSA-2026-1793241599- Updated
- 2026-11-02
OSVCLSA-2026-1793241749 No score
TuxCare security update for zod (1 CVE)
TuxCare rebuilt zod to address 1 CVE. Fixed in 3.25.67-tuxcare.1.
- Record
CLSA-2026-1793241749- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2023-54404 No score
CVE-2023-54404 in zod - Patched by Root
Root has patched CVE-2023-54404 in the zod package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2023-54404- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
zodnpm |
before 4.6.6 | 4.6.6 |
zodTuxCare:npm |
3.25.76-tuxcare.0 up to 3.25.76-tuxcare.2, plus listed versions 3.25.763.25.76-tuxcare.1 |
3.25.76-tuxcare.2 |
zodTuxCare:npm |
3.21.4-tuxcare.0 up to 3.21.4-tuxcare.2, plus listed versions 3.21.43.21.4-tuxcare.1 |
3.21.4-tuxcare.2 |
zodTuxCare:npm |
3.25.48-tuxcare.0 up to 3.25.48-tuxcare.1, plus listed versions 3.25.48 |
3.25.48-tuxcare.1 |
zodTuxCare:npm |
3.25.75-tuxcare.0 up to 3.25.75-tuxcare.1, plus listed versions 3.25.75 |
3.25.75-tuxcare.1 |
zodTuxCare:npm |
3.25.67-tuxcare.0 up to 3.25.67-tuxcare.1, plus listed versions 3.25.67 |
3.25.67-tuxcare.1 |
zodRoot:npm |
before 3.25.67-aikido.1 | 3.25.67-aikido.13.24.4-aikido.13.22.4-aikido.13.22.3-aikido.13.24.2-aikido.13.23.8-aikido.13.25.76-aikido.23.24.1-aikido.13.21.4-aikido.13.22.3-aikido.23.25.58-aikido.13.24.3-aikido.14.5.4-aikido.14.5.0-aikido.14.6.0-aikido.14.6.5-aikido.14.4.0-aikido.14.3.6-aikido.14.1.12-aikido.14.4.3-aikido.1 |
@rootio/zodRoot:npm |
before 3.25.67-root.io.1 | 3.25.67-root.io.13.24.4-root.io.13.22.4-root.io.13.22.3-root.io.13.24.2-root.io.13.23.8-root.io.13.25.76-root.io.23.24.1-root.io.13.21.4-root.io.13.22.3-root.io.23.25.58-root.io.13.24.3-root.io.14.5.4-root.io.14.5.0-root.io.14.6.0-root.io.14.6.5-root.io.14.4.0-root.io.14.3.6-root.io.14.1.12-root.io.14.4.3-root.io.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-54404 has been rejected by its source and should not be treated as a live vulnerability, published October 1, 2026. Fixed in zod 4.6.6.
References
nvd.nist.gov/vuln/detail/CVE-2023-54404
github.com/colinhacks/zod/issues/1872
github.com/colinhacks/zod/pull/6475
vulncheck.com/advisories/zod-uncontrolled-resource-consumption-via-array-validation
github.com/colinhacks/zod/pull/6652
github.com/colinhacks/zod/commit/a0ebf970f2d752e5f58527cd2942ff48be4f46bd
github.com/advisories/GHSA-mrhx-c7xc-m3w5
github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54404.json
github.com/colinhacks/zod