Integer overflow in Cpanel-JSON-XS - CVE-2025-40929

 

Integer overflow in Cpanel-JSON-XS - CVE-2025-40929

Published: September 15, 2025


Vulnerability identifier: #VU115218
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-40929
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to integer overflow. A remote attacker can pass specially crafted JSON data to the application, trigger integer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Cpanel-JSON-XS
Debian Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Server 15
Fedora
SUSE Package Hub 15
Ubuntu
Anolis OS
openEuler
libcpanel-json-xs-perl (Ubuntu package)
libcpanel-json-xs-perl (Debian package)
perl-Cpanel-JSON-XS-help
perl-Cpanel-JSON-XS-debugsource
perl-Cpanel-JSON-XS-debuginfo
perl-Cpanel-JSON-XS
perl-Cpanel-JSON-XS-doc

How to mitigate CVE-2025-40929

Install updates from vendor's website.

Cpanel-JSON-XS - update to 4.40
libcpanel-json-xs-perl (Ubuntu package) - addressed in versions 4.27-1ubuntu0.2, 4.37-1ubuntu0.1, 4.39-1ubuntu0.1
libcpanel-json-xs-perl (Debian package) - addressed in versions 4.35-1+deb12u1, 4.39-2~deb13u1
perl-Cpanel-JSON-XS-help - update to 4.37-2
perl-Cpanel-JSON-XS-debugsource - update to 4.37-2
perl-Cpanel-JSON-XS-debuginfo - update to 4.37-2
perl-Cpanel-JSON-XS - update to 4.37-2
perl-Cpanel-JSON-XS - update to 4.40-1
perl-Cpanel-JSON-XS-doc - update to 4.40-1
perl-Cpanel-JSON-XS - addressed in versions 4.40-1.el8, 4.40-1.el9, 4.40-1.el10_0, 4.40-1.el10_1, 4.40-1.el10_2, 4.40-1.fc41, 4.40-1.fc42, 4.40-1.fc43
perl-Cpanel-JSON-XS - update to 4.380.0-150700.3.3.1
perl-Cpanel-JSON-XS-debuginfo - update to 4.380.0-150700.3.3.1
perl-Cpanel-JSON-XS-debugsource - update to 4.380.0-150700.3.3.1

External References

Related Security Bulletins