Safeguard
Vulnerability Analysis•

CVE-2022-48623: Critical Out-of-Bounds Read in Cpanel::JSON::XS

CVE-2022-48623 is a critical (9.1) out-of-bounds read in the Perl module Cpanel::JSON::XS before 4.33. Upgrade to 4.33 or later and rebuild dependents.

Safeguard Security Team
3 min read

CVE-2022-48623 is a critical (CVSS 9.1) out-of-bounds read in the Cpanel::JSON::XS package for Perl, in all versions before 4.33. A request can lead to information disclosure or a crash of the service that parses it. Upgrade to Cpanel::JSON::XS 4.33 or later.

What's affected

The NVD description says Cpanel::JSON::XS before 4.33 performs out-of-bounds accesses that can expose sensitive information or cause denial of service. The record cites the project's commit, an upstream issue numbered 208, the 4.33 release notes on MetaCPAN, and the CPAN security advisory database.

The upstream issue I could load is titled for wrong error messages, crashes and endless loops with invalid JSON in relaxed mode. I cannot confirm that it is the same defect, so rely on the 4.33 fix version in the record. The NVD record was published on 13 February 2024.

How to check if you're exposed

Print the installed module version with perl -MCpanel::JSON::XS -e 'print $Cpanel::JSON::XS::VERSION, qq(\n)'. For a project that declares dependencies, look at cpanfile, Makefile.PL or cpanfile.snapshot for the pinned version.

The module is also pulled in by other Perl packages and by Linux distributions as a system package, so check dpkg -l | grep -i json-xs or rpm -qa | grep -i json-xs too. Run your Safeguard scan or the free in-browser dependency scan at gold.safeguard.sh/scan against your manifests or SBOM to see whether this package is in your tree, including as a transitive dependency.

What to do now

  1. Find every Perl application, script and container image that loads Cpanel::JSON::XS.
  2. Upgrade with your Perl toolchain, for example cpanm Cpanel::JSON::XS, and confirm the version is 4.33 or higher.
  3. Update the pinned version in cpanfile.snapshot or your lock mechanism and rebuild.
  4. Rebuild container images and redeploy services that bundle the module.
  5. Reject oversized or malformed JSON at the edge, as an extra layer.

Why it matters

CWE-125 is an out-of-bounds read. A parser that reads past the end of its input buffer can return memory it should not, or crash. In a JSON parser used on network data, that makes the flaw reachable by whoever can send a request to the service.

The record scores confidentiality and availability as high, which matches disclosure plus crash. A parser sits in front of nearly all application logic, so the weakness reaches any service that parses untrusted JSON with this module. KEV is false.

Try it yourself

Click through it at your own pace, or open it full screen.

Quick check

Which version fixes it?

Cpanel::JSON::XS 4.33.

How do I know whether my service parses untrusted JSON with this module?

Trace where the module is loaded and whether its input comes from outside. A dependency scan lists the package, and reachability analysis shows whether the call path is live.

Sources

You can also run the free in-browser dependency scan at gold.safeguard.sh/scan to see which known vulnerabilities your dependencies carry.

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

We email you a link to confirm, and only then add you to the list. Unsubscribe in one click. Privacy

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.