Cpanel::JSON::XS versions before 4.80 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag.
With allow_tags, ( starts a tagged value. Its tag and value are decoded recursively, and each can start another tagged value. Unlike arrays and objects, this nesting is not counted against max_depth.
A run of ( bytes exhausts the C stack and triggers an uncatchable segmentation fault regardless of max_depth.
The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Libcpanel-json-xs-perl | Ubuntu | devel | * |
| Libcpanel-json-xs-perl | Ubuntu | esm-apps-legacy/xenial | * |
| Libcpanel-json-xs-perl | Ubuntu | esm-apps/bionic | * |
| Libcpanel-json-xs-perl | Ubuntu | esm-infra/focal | * |
| Libcpanel-json-xs-perl | Ubuntu | jammy | * |
| Libcpanel-json-xs-perl | Ubuntu | noble | * |
| Libcpanel-json-xs-perl | Ubuntu | resolute | * |
| Libcpanel-json-xs-perl | Ubuntu | stonking | * |
| Libcpanel-json-xs-perl | Ubuntu | upstream | * |