CVE-2023-54404
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.
cve.now Index
- Exploitation0/40No signal
- Exposure20/25No login or user action needed per the CVSS vector, CISA rates it automatable · Unknown: No advisory context yet
- Reach?/20Unknown. No tracked technology or package matched
- Severity8.2/10CVSS 8.2
- No patch5/5No patch listed yet
What would change the score
- Would score about 78 if added to CISA KEV
- Would score about 73 if CISA's SSVC rates exploitation active
- Would score about 38 if advisories confirm default setups are exposed
Timeline
- CVE published5 days
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
22 days - Record last updated
Evidence 6
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2023-54404 |
| Record | NVD · CVE-2023-54404 |
| Other links 4 | |
| Patch | GitHub · colinhacks/zod · Pull request #6652 |
| Report | GitHub · colinhacks/zod · Pull request #6475 |
| Repository | GitHub · colinhacks/zod · Issue #1872 |
| Link | vulncheck.com · advisories/zod-uncontrolled-resource-consumption-via-array-validation |
Related
- CVE-2026-55393Local File Inclusion in Teledyne FLIR Robots running Aware2
- CVE-2026-101148BackupSheep <= 1.8 - Unauthenticated Arbitrary File Deletion and Backup Exfiltration via Empty Integration Key
- CVE-2026-79901Predictable Active Directory service-account passwords in BoKS Manager
- CVE-2026-104286An improper limitation of a pathname to a restricted directory ('path traversal') vulnerability in Fortinet FortiMail 8.0.0 through 8.0.1…
- CVE-2026-104056
- CVE-2026-59797Apache HTTP Server: mod_ssl SSLRequire allows .htaccess ap_expr file-function
No corrections so far. Something wrong on this page? Report an error.