Cpanel::JSON::XS versions from 4.51 before 4.80 for Perl allow quadratic CPU use by revalidating the remaining buffer per value in incr_parse. At the...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:16.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10libcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
Cpanel::JSON::XS versions from 4.51 before 4.80 for Perl allow quadratic CPU use by revalidating the remaining buffer per value in incr_parse. At the first non-ASCII byte in a string, the decoder validates UTF-8 from there to the end of its input. incr_parse decodes each buffered value with a fresh decoder, so every value revalidates the rest of the buffer, and doubling the input quadruples the work. A peer that sends about a megabyte of ordinary non-ASCII JSON in one read ties up the process for seconds of CPU time.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report lists.security.metacpan.org