Cpanel::JSON::XS versions before 4.80 for Perl allow memory exhaustion by encoding exponent notation as full decimal digits under allow_bignum. With a...
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 encoding exponent notation as full decimal digits under allow_bignum. With allow_bignum, a JSON number with a fraction or exponent decodes to a Math::BigFloat, which stores the exponent separately and so decodes cheaply. Encoding it untyped or as JSON_TYPE_FLOAT writes the plain decimal form with one digit per unit of exponent. Nothing bounds the exponent, so the 12-byte text [1e30000000] encodes to 30 MB. Untrusted JSON decoded with allow_bignum and encoded again can exhaust memory and CPU.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report lists.security.metacpan.org