Cpanel::JSON::XS versions before 4.80 for Perl leak the decoded key of an object rejected for a duplicate key or a missing colon in decode_hv.
A quoted key of 24 or more bytes, or one containing a non-ASCII byte or an escape sequence, is decoded into a new scalar. Nothing frees that scalar when the object is rejected for a missing : after the key or, from 4.09, for a duplicate key. Duplicate keys are an error unless allow_dupkeys, dupkeys_as_arrayref or relaxed is set.
A process that keeps running after a failed decode retains one key per rejected document, with its size chosen by the sender. Repeated requests exhaust process memory.
The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.
| 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 | * |