Cpanel::JSON::XS versions before 4.80 for Perl leak the decoded arguments of a tagged value when its THAW method dies in decode_tag.
With allow_tags, a tagged values class name and argument array are decoded and passed to the classs THAW method. Both are released only after THAW returns, so a THAW that dies leaves the whole decoded argument structure allocated.
Each rejected document leaks data of a size the sender chooses, so a process that catches the error and keeps running exhausts its 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 | * |