Cpanel::JSON::XS versions before 4.80 for Perl allow memory exhaustion by buffering incremental input past max_size in incr_parse. The parser appends...
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 |
| Ubuntu:Pro:16.04:LTSlibcpanel-json-xs-perl |
< 3.0210-1ubuntu1+esm1→ 3.0210-1ubuntu1+esm1 |
3.0210-1ubuntu1+esm1 |
| Ubuntu:Pro:18.04:LTSlibcpanel-json-xs-perl |
< 3.0239-1ubuntu0.1~esm1→ 3.0239-1ubuntu0.1~esm1 |
3.0239-1ubuntu0.1~esm1 |
| Ubuntu:Pro:20.04:LTSlibcpanel-json-xs-perl |
< 4.19-1ubuntu0.1+esm1→ 4.19-1ubuntu0.1+esm1 |
4.19-1ubuntu0.1+esm1 |
Original description The description as published by the source.
Cpanel::JSON::XS versions before 4.80 for Perl allow memory exhaustion by buffering incremental input past max_size in incr_parse. The parser appends each chunk to its buffer. In scalar or list context, it compares max_size with how far it has progressed, not with the buffer length. A chunk that starts with a NUL byte stops the parser before it progresses, and a call in void context skips the check, so the buffer grows without limit. A peer streaming data to an incr_parse consumer can exhaust process memory regardless of max_size.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report lists.security.metacpan.org