Description
Cpanel::JSON::XS versions from 4.33 before 4.80 for Perl accept malformed UTF-8 in bare hash keys under allow_barekey in decode_hv.

With utf8 and allow_barekey, which relaxed enables, a quoted key is validated as UTF-8 but a bare key's bytes are stored as a UTF-8 flagged string without any check. Malformed UTF-8, control bytes and backslashes reach the decoded hash, while malformed UTF-8 and control bytes in a quoted key or a value are rejected.

Later operations on the key, including lc, uc or encoding the hash again, die with a malformed UTF-8 error.
Published: 2026-10-19
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

Cpanel::JSON::XS allows malformed UTF‑8 characters to be stored as bare hash keys when the allow_barekey option is used. A malformed key becomes an UTF‑8 flagged string without validation. Subsequent operations such as lc, uc, or re‑encoding the hash will raise a malformed‑UTF‑8 exception, potentially crashing the application that parsed the JSON. The vulnerability is limited to data handling and does not grant code execution, but the crash can be leveraged to deny service to users or to disrupt business logic.

Affected Systems

The issue exists in the Cpanel::JSON::XS Perl module for versions 4.33 up to and including 4.79. Systems that load this library for parsing JSON payloads—such as web applications, CGI scripts, or REST APIs written in Perl—are affected. Updates before 4.80 have not implemented the necessary UTF‑8 validation for bare keys.

Risk and Exploitability

The vulnerability was not listed in the CISA Known Exploited Vulnerabilities catalog and the EPSS score of <1% indicates a very low exploitation probability under current threat activity. However, the lack of input validation means that a crafted JSON payload could be injected remotely via any HTTP endpoint that decodes user input with allow_barekey enabled. The attack would result in a runtime exception and crash, leading to a denial of service. There is no evidence of privilege escalation or code execution, and the impact is confined to the process that parsed the malformed data.

Generated by OpenCVE AI on October 29, 2026 at 21:45 UTC.

Remediation

Vendor Solution

Upgrade to Cpanel-JSON-XS 4.80 or later.


OpenCVE Recommended Actions

  • Upgrade Cpanel-JSON-XS to version 4.80 or later, as recommended by the vendor.
  • If an upgrade is not immediately possible, disable the allow_barekey option or implement custom validation to reject bare keys containing malformed UTF‑8 characters.
  • Add defensive input handling: verify that incoming JSON strings are well‑formed UTF‑8 before passing them to decode_hv, and catch any exceptions to prevent process termination.

Generated by OpenCVE AI on October 29, 2026 at 21:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Type Values Removed Values Added
Metrics ssvc

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


Thu, 29 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


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.33 before 4.80 for Perl accept malformed UTF-8 in bare hash keys under allow_barekey in decode_hv. With utf8 and allow_barekey, which relaxed enables, a quoted key is validated as UTF-8 but a bare key's bytes are stored as a UTF-8 flagged string without any check. Malformed UTF-8, control bytes and backslashes reach the decoded hash, while malformed UTF-8 and control bytes in a quoted key or a value are rejected. Later operations on the key, including lc, uc or encoding the hash again, die with a malformed UTF-8 error.
Title Cpanel::JSON::XS versions from 4.33 before 4.80 for Perl accept malformed UTF-8 in bare hash keys under allow_barekey in decode_hv
Weaknesses CWE-1286
References

Subscriptions

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

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-10-29T16:38:54.111Z

Reserved: 2026-10-14T13:23:41.479Z

Link: CVE-2026-110675

cve-icon Vulnrichment

Updated: 2026-10-29T16:38:40.515Z

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2026-10-29T17:17:59.847

Link: CVE-2026-110675

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T22:00:09Z

Weaknesses
  • CWE-1286

    Improper Validation of Syntactic Correctness of Input