Cpanel::JSON::XS versions before 4.80 for Perl use the parent interpreters scalars from a parser object cloned into a new ithread.
A parser object holds its callbacks and its incremental parse buffer as raw scalar pointers. When a thread is created, these are copied into the new interpreter unchanged, so the childs parser uses, and later frees, scalars that belong to the parent and may already have been freed there.
A parser created before a thread starts and used inside it can call freed callbacks, corrupt reference counts and crash the process.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.
| 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 | * |