Memory leak in Cpanel::JSON::XS when decoding duplicate JSON keys
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-401.
Summary
Cpanel::JSON::XS for Perl from 4.28 before 4.80 leaks memory in decode_hv when dupkeys_as_arrayref is set. The array collecting values of a duplicate object key is never released (CWE-401), and it also leaks when decoding fails after a duplicate key. An unauthenticated remote attacker can exhaust process memory by repeatedly decoding untrusted JSON that has a duplicate key with a large value.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
Cpanel::JSON::XS versions from 4.28 before 4.80 for Perl leak the array collecting duplicate key values under dupkeys_as_arrayref in decode_hv. With dupkeys_as_arrayref, the values of a duplicate object key are collected into a new array. An extra reference is never released, so the array and every value in it outlive the decoded structure. The array also leaks when decoding fails after a duplicate key. Repeatedly decoding untrusted JSON with a duplicate key holding a large value exhausts process memory.
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 |
|---|---|---|---|---|---|
| — | Cpanel-JSON-XS | 4.28 to before 4.80 | 4.80 | Patch available | CNA |
- Cpanel-JSON-XS Vendor— Affected 4.28 to before 4.80 Fixed in 4.80 Patch available CNA
Remediation
Upgrade Cpanel-JSON-XS to version 4.80, which fixes the flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA Cpanel-JSON-XS Fixed in 4.80
Vendor assessments
Timeline
- 2026-10-20 Threatist record created from CVE-2026-110677
- 2026-10-20 Alias added: GHSA-mjfh-hmwc-q348
- 2026-10-20 Affected versions changed · Red Hat
- 2026-10-20 CVSS score added · Red Hat
- 2026-10-21 CVSS score changed · Red Hat
- 2026-10-29 CVSS score added · CISA ADP
- 2026-10-29 CISA SSVC decision points changed
References
Sources
- CVE-2026-110677 · CVE Program
- CVE-2026-110677 · NVD
- FIRST EPSS
- GHSA-mjfh-hmwc-q348 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-110677 · 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