Description
Cpanel::JSON::XS versions from 4.20 before 4.80 for Perl write out of bounds when a tied or shared hash grows during canonical encoding in encode_hv.

With canonical, the keys of a tied or threads::shared hash are counted before a second pass collects them for sorting. The encoder uses a fixed 64-entry stack array or, for larger counts, a heap array sized from the first pass. If the second pass exceeds that capacity, entries are written out of bounds before the counts are compared.

This corrupts stack or heap memory and can crash the process.
Published: 2026-10-19
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via memory corruption
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is an out‑of‑bounds write in the Cpanel-JSON-XS Perl module. During canonical encoding of a tied or threads::shared hash, the encoder first counts keys using a fixed 64‑entry stack array or a heap array sized from that first pass. If a second pass discovers more keys than the array can hold, the module writes beyond the allocated memory, corrupting stack or heap data. This corruption terminates the Perl process, resulting in a denial of service. The issue is contained within the encoding routine and does not provide a path to arbitrary code execution.

Affected Systems

Affected products are the Cpanel‑JSON‑XS Perl module, versions 4.20 up to, but not including, 4.80. Any system that installs or imports this module and invokes encode_hv in canonical mode on tied or shared hashes is vulnerable, including standalone Perl scripts, web applications, and other services that rely on Cpanel‑JSON‑XS for JSON processing.

Risk and Exploitability

The CVSS score of 7.5 and an EPSS score of < 1% indicate moderate severity but low likelihood of exploitation. Based on the description, the likely attack vector is the processing of externally supplied data that is encoded using encode_hv in canonical mode on tied or shared hashes, such as JSON payloads from remote clients. The vulnerability is an internal or local risk without a mechanism for remote code execution. Because the CVE is not listed in the CISA KEV catalog and no widespread exploitation evidence exists, the current risk is primarily the potential for intermittent process crashes that can disrupt services.

Generated by OpenCVE AI on October 30, 2026 at 13:30 UTC.

Remediation

Vendor Solution

Upgrade to Cpanel-JSON-XS 4.80 or later.


OpenCVE Recommended Actions

  • Upgrade to Cpanel-JSON-XS 4.80 or later.
  • Avoid using canonical mode when encoding tied or shared hashes; convert these structures to plain hashes before encoding.
  • If an upgrade cannot be applied immediately, plan and test the upgrade in a staging environment, then deploy it to production as soon as possible.
  • Monitor for, and install, any additional vendor patches that address Cpanel-JSON-XS or related Perl module vulnerabilities.

Generated by OpenCVE AI on October 30, 2026 at 13:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 11:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 19 Oct 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Rurban
Rurban cpanel::json::xs
Vendors & Products Rurban
Rurban cpanel::json::xs

Mon, 19 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Description Cpanel::JSON::XS versions from 4.20 before 4.80 for Perl write out of bounds when a tied or shared hash grows during canonical encoding in encode_hv. With canonical, the keys of a tied or threads::shared hash are counted before a second pass collects them for sorting. The encoder uses a fixed 64-entry stack array or, for larger counts, a heap array sized from the first pass. If the second pass exceeds that capacity, entries are written out of bounds before the counts are compared. This corrupts stack or heap memory and can crash the process.
Title Cpanel::JSON::XS versions from 4.20 before 4.80 for Perl write out of bounds when a tied or shared hash grows during canonical encoding in encode_hv
Weaknesses CWE-787
References

Subscriptions

Rurban Cpanel::json::xs
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-10-30T11:03:11.404Z

Reserved: 2026-10-14T13:25:23.957Z

Link: CVE-2026-110680

cve-icon Vulnrichment

Updated: 2026-10-30T11:02:28.318Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-19T19:17:21.657

Modified: 2026-10-30T11:17:31.650

Link: CVE-2026-110680

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T13:30:12Z

Weaknesses