Zod Uncontrolled Resource Consumption via Unbounded Array, Set, and Map Validation
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 fixed, 15 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-770.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| colinhacks | zod | up to 4.6.7 | — | No fix listed | CNA |
| — | zod (npm) | before 4.6.6 | 4.6.6 | Patch available | GHSA-mrhx-c7xc-m3w5 |
- zod Vendorcolinhacks Affected up to 4.6.7 Fixed in — No fix listed CNA
- zod (npm) Vendor— Affected before 4.6.6 Fixed in 4.6.6 Patch available GHSA-mrhx-c7xc-m3w5
Remediation
- Fix · GHSA-mrhx-c7xc-m3w5 zod (npm) Fixed in 4.6.6 Advisory →
Red Hat 2 advisories
- RHSA-2026:92510 Released 2026-10-29 · Red Hat rating CriticalRHOAI 3.4.6 - Red Hat OpenShift AI
- Red Hat OpenShift AI 3.4 registry.redhat.io/rhoai/odh-built-in-detector-rhel9, registry.redhat.io/rhoai/odh-cli-rhel9, registry.redhat.io/rhoai/odh-dashboard-rhel9 +47
- RHSA-2026:90321 Released 2026-10-26 · Red Hat rating CriticalRed Hat OpenShift Dev Spaces 3.31.0 Release.
- Red Hat OpenShift Dev Spaces 3.31 registry.redhat.io/devspaces/code-rhel9, registry.redhat.io/devspaces/dashboard-rhel9, registry.redhat.io/devspaces/jetbrains-ide-rhel9 +8
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Ansible Automation Orchestrator 2026 | Affected | No fix yet |
| Cost Management On Premise | Affected | No fix yet |
| Migration Toolkit for Applications 8 | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat Build of Keycloak | Affected | No fix yet |
| Red Hat Data Grid 8 | Affected | No fix planned: Will not fix |
| Red Hat Developer Hub 1 | Affected | No fix yet |
| Red Hat Enterprise Linux 10 | Affected | No fix yet |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | No fix yet |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat OpenShift GitOps | Affected | No fix planned: Will not fix |
| Red Hat Trusted Artifact Signer | Affected | No fix yet |
| Secrets Management Console for Red Hat OpenShift | Affected | No fix planned: Will not fix |
| Self-service automation portal 2 | Affected | No fix yet |
| Red Hat OpenShift AI 3.4 | Fixed | RHSA-2026:92510 |
| Red Hat OpenShift Dev Spaces 3.31 | Fixed | RHSA-2026:90321 |
Not affected: 12 products
- Cryostat 4
- Red Hat Build of Podman Desktop
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Hardened Images
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift AI 3.4
- Red Hat OpenShift Container Platform 5
- Red Hat OpenShift Dev Spaces 3.31
Timeline
- 2026-10-02 Threatist record created from CVE-2023-54404
- 2026-10-03 Alias added: GHSA-mrhx-c7xc-m3w5
- 2026-10-06 CISA SSVC decision points changed
- 2026-10-06 Priority changed: LOW → MEDIUM
- 2026-10-06 Affected versions changed · Red Hat
- 2026-10-08 Affected versions changed · Red Hat
- 2026-10-10 Affected versions changed · Red Hat
- 2026-10-13 Fix available: colinhacks/zod@e06a510b6fc1e6e28e3201fd116ca2a76212f6be · CNA
- 2026-10-13 1 new reference · CNA
- 2026-10-16 Affected versions changed · Red Hat
- 2026-10-22 Title updated · CNA
- 2026-10-22 Weakness changed · CNA
- 2026-10-22 Affected versions changed · CNA
- 2026-10-23 Fix available: npm/[email protected] · GHSA-mrhx-c7xc-m3w5
- 2026-10-23 CVSS score added · GHSA-mrhx-c7xc-m3w5
- 2026-10-23 Weakness changed · GHSA-mrhx-c7xc-m3w5
- 2026-10-23 6 new references · GHSA-mrhx-c7xc-m3w5
- 2026-10-27 Affected versions changed · Red Hat
- 2026-10-29 Fix available: Red Hat OpenShift Dev Spaces 3.31 · Red Hat
- 2026-10-30 Fix available: RHSA-2026:90321 · Red Hat
- 2026-10-30 Fix available: RHSA-2026:92510 · Red Hat
- 2026-10-30 Fix available: Red Hat OpenShift AI 3.4 · Red Hat
- 2026-10-30 Affected versions changed · Red Hat
- 2026-10-30 Affected versions changed · Red Hat
- 2026-11-05 Affected versions changed · Red Hat
References
More colinhacks vulnerabilities
- TI-2026-06119 colinhacks Zod CUID Data Type regexes.ts sql injection CVSS 4.0MEDIUM 5.3
Sources
- CVE-2023-54404 · CVE Program
- CVE-2023-54404 · NVD
- FIRST EPSS
- GHSA-mrhx-c7xc-m3w5 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-54404 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences