Cpanel::JSON::XS versions from 4.20 before 4.80 for Perl write out of bounds when a tied or shared hash grows during canonical encoding in encode_hv....
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 |
< 4.27-1ubuntu0.3→ 4.27-1ubuntu0.3 |
4.27-1ubuntu0.3 |
| Ubuntu:24.04:LTSlibcpanel-json-xs-perl |
< 4.37-1ubuntu0.2→ 4.37-1ubuntu0.2 |
4.37-1ubuntu0.2 |
| Ubuntu:26.10libcpanel-json-xs-perl |
< 4.42-1ubuntu0.1→ 4.42-1ubuntu0.1 |
4.42-1ubuntu0.1 |
| Ubuntu:26.04:LTSlibcpanel-json-xs-perl |
< 4.40-1ubuntu0.1→ 4.40-1ubuntu0.1 |
4.40-1ubuntu0.1 |
Original description The description as published by the source.
Cpanel::JSON::XS versions from 4.20 before 4.80 for Perl write out of bounds when a tied or shared hash grows during canonical encoding in encode_hv. With canonical, the keys of a tied or threads::shared hash are counted before a second pass collects them for sorting. The encoder uses a fixed 64-entry stack array or, for larger counts, a heap array sized from the first pass. If the second pass exceeds that capacity, entries are written out of bounds before the counts are compared. This corrupts stack or heap memory and can crash the process.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report lists.security.metacpan.org